aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-10-13 12:33:47 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-10-13 12:33:47 -0700
commite6f38a11e398dd934d567178174fbc3a6ebcbc1a (patch)
treee891734a2c96680f2494ad0e02412a3cd5425dab
parent6e2a0226532a72738ec304e586e10c44826b8ec5 (diff)
downloadsyslinux-elf-e6f38a11e398dd934d567178174fbc3a6ebcbc1a.tar.gz
syslinux-elf-e6f38a11e398dd934d567178174fbc3a6ebcbc1a.tar.xz
syslinux-elf-e6f38a11e398dd934d567178174fbc3a6ebcbc1a.zip
com32/lib: fix reversed test when looking for extattr in e820
Fix reversed test when looking for extattr in e820: force the extattr values only when they are *not* present... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--com32/lib/syslinux/memmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/lib/syslinux/memmap.c b/com32/lib/syslinux/memmap.c
index c5f1b251..e14dd70b 100644
--- a/com32/lib/syslinux/memmap.c
+++ b/com32/lib/syslinux/memmap.c
@@ -87,7 +87,7 @@ struct syslinux_memmap *syslinux_memory_map(void)
(oreg.ecx.l < 20))
break;
- if (oreg.ecx.l >= 24)
+ if (oreg.ecx.l < 24)
e820buf->extattr = 1; /* Enabled, normal */
if (!(e820buf->extattr & 1))