summaryrefslogtreecommitdiff
path: root/com32/lib/syslinux/keyboard.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-04-08 16:17:55 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-04-08 16:17:55 -0700
commit8831801a61b87ed9a138d2155f26db6ce012cc41 (patch)
treef94e64e5a03cb67cc88d5eaf7849fe4c410a7224 /com32/lib/syslinux/keyboard.c
parentaeea1c1bdab66787caaf81adf369d7d96e59e9cb (diff)
downloadsyslinux-8831801a61b87ed9a138d2155f26db6ce012cc41.tar.gz
com32: the keyboard map size is in CX not in DX
Impact: fixes kbdmap.c32 The keyboard map size is passed in CX, not in DX. Fix typo in libcom32. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'com32/lib/syslinux/keyboard.c')
-rw-r--r--com32/lib/syslinux/keyboard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/lib/syslinux/keyboard.c b/com32/lib/syslinux/keyboard.c
index f4510e61..2b31b270 100644
--- a/com32/lib/syslinux/keyboard.c
+++ b/com32/lib/syslinux/keyboard.c
@@ -38,7 +38,7 @@ void __constructor __syslinux_get_keyboard_map(void)
__intcall(0x22, &reg, &reg);
if (!(reg.eflags.l & EFLAGS_CF)) {
__syslinux_keyboard_map.version = reg.eax.w[0];
- __syslinux_keyboard_map.length = reg.edx.w[0];
+ __syslinux_keyboard_map.length = reg.ecx.w[0];
__syslinux_keyboard_map.map = MK_PTR(reg.es, reg.ebx.w[0]);
}
}