Skip to content

Commit

Permalink
x86, realmode: Fix always-zero test in reboot_32.S
Browse files Browse the repository at this point in the history
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: H. Peter Anvin <hpa@linux.intel.com>
Link: http://lkml.kernel.org/r/1336501366-28617-17-git-send-email-jarkko.sakkinen@intel.com
  • Loading branch information
H. Peter Anvin committed May 8, 2012
1 parent be60828 commit 6feb592
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/realmode/rm/reboot_32.S
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ machine_real_restart_asm16:
movl %edx, %cr0
LJMPW_RM(3f)
3:
testb $0, %al
andw %ax, %ax
jz bios

apm:
Expand Down

0 comments on commit 6feb592

Please sign in to comment.