diff options
author | H. Peter Anvin <hpa@zytor.com> | 2009-04-28 22:01:48 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-04-28 22:01:48 -0700 |
commit | f282a4a81dd2ec57eac25eeab5d225df69dc903e (patch) | |
tree | d70486c714916a0456ca652efbf77d6690eefcdc /com32/lib/syslinux | |
parent | 29d0194688cb89507e52223118c482f6c451b76f (diff) | |
download | syslinux-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.c | 2 |
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 |