Move the __jiffies and _IdleTimer variables to the .data16 segment.
This ensures that if do_idle is invoked very early that it will not
jump off into a non-existent idle routine.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
.ret: ret
section .data16
- alignz 2
+ alignz 4
+ global _IdleTimer
+_IdleTimer dd 0
global NoHalt
NoHalt dw 0
hlt_err db 'ERROR: idle with IF=0', CR, LF, 0
- section .bss16
- global _IdleTimer
- alignb 4
-_IdleTimer resd 1
+ section .text16
jmp 0:0
BIOS_timer_next equ $-4
- section .bss16
- alignb 4
+ section .data16
+ alignz 4
global __jiffies
-__jiffies resd 1 ; The actual timer variable
+__jiffies dd 0 ; The actual timer variable