git: 9front

Download patch

ref: 4ce47db56b884334a09c07fcfa13775fbc85c84d
parent: c4e7269bdbfb7db83a852d09fede68077426204a
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.
--