Commit 6feb592d authored by H. Peter Anvin's avatar H. Peter Anvin

x86, realmode: Fix always-zero test in reboot_32.S

A test instruction is an "and", and an and with zero is always zero.
This would cause us to always take the BIOS path, not the APM path, in
case anyone actually cares...
Signed-off-by: default avatarH. Peter Anvin <hpa@linux.intel.com>
Link: http://lkml.kernel.org/r/1336501366-28617-17-git-send-email-jarkko.sakkinen@intel.com
parent be608289
...@@ -85,7 +85,7 @@ machine_real_restart_asm16: ...@@ -85,7 +85,7 @@ machine_real_restart_asm16:
movl %edx, %cr0 movl %edx, %cr0
LJMPW_RM(3f) LJMPW_RM(3f)
3: 3:
testb $0, %al andw %ax, %ax
jz bios jz bios
apm: apm:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment