pc64: move idle() routine after CALL main(SB) as the comment suggests

This commit is contained in:
cinap_lenrek 2016-01-14 01:08:36 +01:00
parent ed4c812765
commit a57a6e511f

View file

@ -234,6 +234,16 @@ _clearbss:
CALL main(SB)
/*
* Park a processor. Should never fall through a return from main to here,
* should only be called by application processors when shutting down.
*/
TEXT idle(SB), 1, $-4
_idle:
STI
HLT
JMP _idle
/*
* The CPUID instruction is always supported on the amd64.
*/
@ -391,16 +401,6 @@ TEXT mb586(SB), 1, $-4
CPUID
RET
/*
* Park a processor. Should never fall through a return from main to here,
* should only be called by application processors when shutting down.
*/
TEXT idle(SB), 1, $-4
_idle:
STI
HLT
JMP _idle
/*
* BIOS32.
*/