mirror of https://github.com/FDOS/kernel.git
ia16-elf-gcc: eliminate _EnableA20 and _DisableA20 wrappers.
This commit is contained in:
parent
384c5d302f
commit
204c2d5ba9
|
@ -327,8 +327,8 @@ extern struct RelocationTable DOSFAR ASM _HMARelocationTableEnd[];
|
|||
|
||||
extern void FAR *DOSFAR ASM XMSDriverAddress;
|
||||
#ifdef __GNUC__
|
||||
extern VOID _EnableA20(VOID);
|
||||
extern VOID _DisableA20(VOID);
|
||||
extern VOID ASMPASCAL _EnableA20(VOID) FAR;
|
||||
extern VOID ASMPASCAL _DisableA20(VOID) FAR;
|
||||
#else
|
||||
extern VOID ASMPASCAL FAR _EnableA20(VOID);
|
||||
extern VOID ASMPASCAL FAR _DisableA20(VOID);
|
||||
|
|
|
@ -276,22 +276,6 @@ cpu_abort:
|
|||
%endif ; XCPU != 86
|
||||
|
||||
|
||||
%ifdef gcc
|
||||
global __EnableA20
|
||||
__EnableA20:
|
||||
pop ax
|
||||
push cs
|
||||
push ax
|
||||
jmp DGROUP:_ENABLEA20
|
||||
|
||||
global __DisableA20
|
||||
__DisableA20:
|
||||
pop ax
|
||||
push cs
|
||||
push ax
|
||||
jmp DGROUP:_DISABLEA20
|
||||
%endif
|
||||
|
||||
segment INIT_TEXT_END
|
||||
|
||||
|
||||
|
|
|
@ -164,6 +164,8 @@ SECTIONS
|
|||
_set_DTA = SET_DTA;
|
||||
_DetectXMSDriver = DETECTXMSDRIVER;
|
||||
_init_call_XMScall = INIT_CALL_XMSCALL;
|
||||
__EnableA20 = _ENABLEA20;
|
||||
__DisableA20 = _DISABLEA20;
|
||||
*(.text)
|
||||
*(INIT_TEXT_END)
|
||||
ASSERT(. <= 0x10000,
|
||||
|
|
Loading…
Reference in New Issue