]> git.lizzy.rs Git - plan9front.git/commitdiff
pc64: move idle() routine after CALL main(SB) as the comment suggests
authorcinap_lenrek <cinap_lenrek@felloff.net>
Thu, 14 Jan 2016 00:08:36 +0000 (01:08 +0100)
committercinap_lenrek <cinap_lenrek@felloff.net>
Thu, 14 Jan 2016 00:08:36 +0000 (01:08 +0100)
sys/src/9/pc64/l.s

index 45b0f36621feb8f153066e60782290b54712f738..669ee21672023fec5ce09242d088f8ad0fc3303a 100644 (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.
  */