diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-01-14 01:08:36 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-01-14 01:08:36 +0100 |
commit | a57a6e511f15c02b4fd2690197b6f1333b171193 (patch) | |
tree | 75925fd9dc7acfe0d8df3c037db8c34503fcffcd /sys/src/9 | |
parent | ed4c8127658eec28f70947c738abb4b24244c909 (diff) |
pc64: move idle() routine after CALL main(SB) as the comment suggests
Diffstat (limited to 'sys/src/9')
-rw-r--r-- | sys/src/9/pc64/l.s | 20 |
1 files 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 @@ -235,6 +235,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. */ TEXT cpuid(SB), $-4 @@ -392,16 +402,6 @@ TEXT mb586(SB), 1, $-4 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. */ TEXT bios32call(SB), 1, $-4 |