summaryrefslogtreecommitdiff
path: root/com32/lib/syslinux
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-04-28 22:01:48 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-04-28 22:01:48 -0700
commitf282a4a81dd2ec57eac25eeab5d225df69dc903e (patch)
treed70486c714916a0456ca652efbf77d6690eefcdc /com32/lib/syslinux
parent29d0194688cb89507e52223118c482f6c451b76f (diff)
downloadsyslinux-f282a4a81dd2ec57eac25eeab5d225df69dc903e.tar.gz
memscan: use the contents of the ebda_seg, not the pointer itself
Use the contents of the ebda_seg variable, not the address... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'com32/lib/syslinux')
-rw-r--r--com32/lib/syslinux/memscan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/lib/syslinux/memscan.c b/com32/lib/syslinux/memscan.c
index dadafd06..1f9bd8a7 100644
--- a/com32/lib/syslinux/memscan.c
+++ b/com32/lib/syslinux/memscan.c
@@ -64,7 +64,7 @@ int syslinux_scan_memory(scan_memory_callback_t callback, void *data)
dosmem = oreg.eax.w[0] << 10;
if (dosmem < 32*1024 || dosmem > 640*1024) {
/* INT 12h reports nonsense... now what? */
- uint16_t ebda_seg = (uint16_t *)0x40e;
+ uint16_t ebda_seg = *(uint16_t *)0x40e;
if (ebda_seg >= 0x8000 && ebda_seg < 0xa000)
dosmem = ebda_seg << 4;
else