aboutsummaryrefslogtreecommitdiffstats
path: root/mbr/gptmbr.S
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2009-03-30 17:53:09 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2009-03-30 17:53:09 -0700
commita1e66d80179262be63c43bb33046bd41069b803d (patch)
treed93cd6ee1490540ff655069e8faa74ef623c4a3a /mbr/gptmbr.S
parent4f964b57c29db85515b68a3f59a791804aae8aae (diff)
downloadsyslinux.git-a1e66d80179262be63c43bb33046bd41069b803d.tar.gz
syslinux.git-a1e66d80179262be63c43bb33046bd41069b803d.tar.xz
syslinux.git-a1e66d80179262be63c43bb33046bd41069b803d.zip
mbr/*.S: use a symbolic constant for BIOS_kbdflags
Impact: cleanup Use a symbolic constant for BIOS_kbdflags instead of open-coding the address. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'mbr/gptmbr.S')
-rw-r--r--mbr/gptmbr.S3
1 files changed, 2 insertions, 1 deletions
diff --git a/mbr/gptmbr.S b/mbr/gptmbr.S
index 0a547b85..d6a9a96a 100644
--- a/mbr/gptmbr.S
+++ b/mbr/gptmbr.S
@@ -42,6 +42,7 @@ bootguid = _start + 0x1a8
/* Where we put DS:SI */
dssi_out = _start + 0x1be
+BIOS_kbdflags = 0x417
BIOS_page = 0x462
/* gas/ld has issues with doing this as absolute addresses... */
@@ -73,7 +74,7 @@ _start:
ljmpw $0, $next
next:
/* Escape for the user: if Ctrl is pressed, assume drive hd0 */
- testb $0x04, 0x417 /* keyboard control flags: Ctrl pressed */
+ testb $0x04, BIOS_kbdflags /* Ctrl pressed */
jz 1f
movb $0x80, %dl
1: