mirror of https://github.com/FDOS/kernel.git
ia16-elf-gcc: eliminate wrapper for init_call_p_0 and make it "noreturn".
This commit is contained in:
parent
36e31078ce
commit
25071a8df2
|
@ -223,7 +223,7 @@ VOID ASMCFUNC FAR cpm_entry(void);
|
||||||
|
|
||||||
/* kernel.asm */
|
/* kernel.asm */
|
||||||
#ifdef __GNUC__
|
#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
|
#else
|
||||||
VOID ASMCFUNC FAR init_call_p_0(struct config FAR *Config); /* P_0, actually */
|
VOID ASMCFUNC FAR init_call_p_0(struct config FAR *Config); /* P_0, actually */
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -277,13 +277,6 @@ cpu_abort:
|
||||||
|
|
||||||
|
|
||||||
%ifdef gcc
|
%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
|
global __EnableA20
|
||||||
__EnableA20:
|
__EnableA20:
|
||||||
pop ax
|
pop ax
|
||||||
|
|
Loading…
Reference in New Issue