mirror of
https://github.com/ipxe/ipxe
synced 2025-12-11 22:11:08 +03:00
[librm] Make rm_sp and rm_ss globals again
This commit is contained in:
committed by
Michael Brown
parent
179fa70d34
commit
2539f5fa4a
2
src/arch/i386/include/librm.h
Normal file → Executable file
2
src/arch/i386/include/librm.h
Normal file → Executable file
@@ -60,6 +60,8 @@ extern char *text16;
|
|||||||
( ( ( void * ) (pointer) ) - ( ( void * ) text16 ) ) )
|
( ( ( void * ) (pointer) ) - ( ( void * ) text16 ) ) )
|
||||||
|
|
||||||
/* Variables in librm.S, present in the normal data segment */
|
/* Variables in librm.S, present in the normal data segment */
|
||||||
|
extern uint16_t rm_sp;
|
||||||
|
extern uint16_t rm_ss;
|
||||||
extern uint16_t __data16 ( rm_cs );
|
extern uint16_t __data16 ( rm_cs );
|
||||||
#define rm_cs __use_data16 ( rm_cs )
|
#define rm_cs __use_data16 ( rm_cs )
|
||||||
extern uint16_t __text16 ( rm_ds );
|
extern uint16_t __text16 ( rm_ds );
|
||||||
|
|||||||
2
src/arch/i386/transitions/librm.S
Normal file → Executable file
2
src/arch/i386/transitions/librm.S
Normal file → Executable file
@@ -552,7 +552,9 @@ rc_function: .word 0, 0
|
|||||||
****************************************************************************
|
****************************************************************************
|
||||||
*/
|
*/
|
||||||
.section ".data"
|
.section ".data"
|
||||||
|
.globl rm_sp
|
||||||
rm_sp: .word 0
|
rm_sp: .word 0
|
||||||
|
.globl rm_ss
|
||||||
rm_ss: .word 0
|
rm_ss: .word 0
|
||||||
pm_esp: .long _estack
|
pm_esp: .long _estack
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user