aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-02-06 23:26:32 -0800
committerH. Peter Anvin <hpa@zytor.com>2010-02-06 23:26:32 -0800
commit9a02cdbe61c10146b5d7ffb85ef3dd5c15bdf784 (patch)
treef89120ffcb6487f0561c4867090783a65349928f
parent4d042afa499f879317b2c18dafd714751bd951ba (diff)
downloadsyslinux.git-9a02cdbe61c10146b5d7ffb85ef3dd5c15bdf784.tar.gz
syslinux.git-9a02cdbe61c10146b5d7ffb85ef3dd5c15bdf784.tar.xz
syslinux.git-9a02cdbe61c10146b5d7ffb85ef3dd5c15bdf784.zip
sysdump: fix the dumping of the e820 memory information
Need to advance the pointer... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--com32/sysdump/memmap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/com32/sysdump/memmap.c b/com32/sysdump/memmap.c
index bc938c9e..c8cfc032 100644
--- a/com32/sysdump/memmap.c
+++ b/com32/sysdump/memmap.c
@@ -49,6 +49,7 @@ static void dump_e820(struct backend *be)
memcpy(buf[nentry].data, curr->data, sizeof curr->data);
buf[nentry].ebx = ireg.ebx.l;
buf[nentry].len = oreg.ecx.l;
+ nentry++;
ireg.ebx.l = oreg.ebx.l;
} while (ireg.ebx.l);