From a57a6e511f15c02b4fd2690197b6f1333b171193 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Thu, 14 Jan 2016 01:08:36 +0100 Subject: pc64: move idle() routine after CALL main(SB) as the comment suggests --- sys/src/9/pc64/l.s | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/sys/src/9/pc64/l.s b/sys/src/9/pc64/l.s index 45b0f3662..669ee2167 100644 --- a/sys/src/9/pc64/l.s +++ b/sys/src/9/pc64/l.s @@ -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. */ -- cgit v1.2.3