diff --git a/kernel/init-mod.h b/kernel/init-mod.h index 949b3c8..24f590f 100644 --- a/kernel/init-mod.h +++ b/kernel/init-mod.h @@ -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 diff --git a/kernel/kernel.asm b/kernel/kernel.asm index 71c53ea..99f6932 100644 --- a/kernel/kernel.asm +++ b/kernel/kernel.asm @@ -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