mirror of
https://github.com/ipxe/ipxe
synced 2025-12-26 17:42:47 +03:00
Use librm_arch_initialise for librm, arch_initialise for others.
This commit is contained in:
@@ -39,6 +39,8 @@
|
|||||||
#define ENTER_FROM_EXTERNAL call ext_to_kir
|
#define ENTER_FROM_EXTERNAL call ext_to_kir
|
||||||
#define RETURN_TO_EXTERNAL call kir_to_ext
|
#define RETURN_TO_EXTERNAL call kir_to_ext
|
||||||
#define ENTRY_POINT kir_call
|
#define ENTRY_POINT kir_call
|
||||||
|
#define ENTRY_POINT_REGISTER di
|
||||||
|
#define INIT_FUNC arch_initialise
|
||||||
|
|
||||||
#else /* KEEP_IT_REAL */
|
#else /* KEEP_IT_REAL */
|
||||||
|
|
||||||
@@ -50,11 +52,11 @@
|
|||||||
call prot_to_real ; \
|
call prot_to_real ; \
|
||||||
.code16
|
.code16
|
||||||
#define ENTRY_POINT _prot_call /* _prot_call = OFFSET ( prot_call ) in librm */
|
#define ENTRY_POINT _prot_call /* _prot_call = OFFSET ( prot_call ) in librm */
|
||||||
|
#define ENTRY_POINT_REGISTER di
|
||||||
|
#define INIT_FUNC librm_arch_initialise
|
||||||
|
|
||||||
#endif /* KEEP_IT_REAL */
|
#endif /* KEEP_IT_REAL */
|
||||||
|
|
||||||
#define ENTRY_POINT_REGISTER di
|
|
||||||
|
|
||||||
.section ".text16"
|
.section ".text16"
|
||||||
.code16
|
.code16
|
||||||
.globl setup16
|
.globl setup16
|
||||||
@@ -76,6 +78,7 @@ setup16:
|
|||||||
#define RETURN_TO_EXTERNAL call int_to_ext
|
#define RETURN_TO_EXTERNAL call int_to_ext
|
||||||
#define ENTRY_POINT int_call
|
#define ENTRY_POINT int_call
|
||||||
#define ENTRY_POINT_REGISTER edi
|
#define ENTRY_POINT_REGISTER edi
|
||||||
|
#define INIT_FUNC arch_initialise
|
||||||
|
|
||||||
.section ".text"
|
.section ".text"
|
||||||
.code32
|
.code32
|
||||||
@@ -145,7 +148,7 @@ setup:
|
|||||||
* subsequent calls. librm will use this facility, since
|
* subsequent calls. librm will use this facility, since
|
||||||
* arch_initialise() causes librm to be relocated.
|
* arch_initialise() causes librm to be relocated.
|
||||||
*/
|
*/
|
||||||
pushl $arch_initialise
|
pushl $INIT_FUNC
|
||||||
push %cs /* lcall %es:[x]di == %cs:[x]di */
|
push %cs /* lcall %es:[x]di == %cs:[x]di */
|
||||||
call *%ENTRY_POINT_REGISTER
|
call *%ENTRY_POINT_REGISTER
|
||||||
popl %ebp /* discard */
|
popl %ebp /* discard */
|
||||||
|
|||||||
Reference in New Issue
Block a user