ia16-elf-gcc: eliminate wrapper for init_call_p_0 and make it "noreturn".

This commit is contained in:
Bart Oldeman 2018-07-12 11:47:41 -04:00
parent 36e31078ce
commit 25071a8df2
2 changed files with 1 additions and 8 deletions

View File

@ -223,7 +223,7 @@ VOID ASMCFUNC FAR cpm_entry(void);
/* kernel.asm */
#ifdef __GNUC__
VOID ASMCFUNC init_call_p_0(struct config FAR *Config) asm("init_call_p_0");
VOID ASMCFUNC init_call_p_0(struct config FAR *Config) FAR __attribute__((noreturn));
#else
VOID ASMCFUNC FAR init_call_p_0(struct config FAR *Config); /* P_0, actually */
#endif

View File

@ -277,13 +277,6 @@ cpu_abort:
%ifdef gcc
global init_call_p_0
init_call_p_0:
pop ax
push cs
push ax
jmp DGROUP:_init_call_p_0
global __EnableA20
__EnableA20:
pop ax