ia16-elf-gcc: eliminate _EnableA20 and _DisableA20 wrappers.

This commit is contained in:
Bart Oldeman 2018-07-12 12:14:47 -04:00 committed by Kenneth J Davis
parent 384c5d302f
commit 204c2d5ba9
3 changed files with 4 additions and 18 deletions

View File

@ -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);

View File

@ -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

View File

@ -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,