ref: a57a6e511f15c02b4fd2690197b6f1333b171193
parent: ed4c8127658eec28f70947c738abb4b24244c909
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Wed Jan 13 20:08:36 EST 2016
pc64: move idle() routine after CALL main(SB) as the comment suggests
--- a/sys/src/9/pc64/l.s
+++ b/sys/src/9/pc64/l.s
@@ -235,6 +235,16 @@
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.
*/
TEXT cpuid(SB), $-4
@@ -390,16 +400,6 @@
XORL AX, AX
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.