[syslinux:master] sysdump: fix the dumping of the e820 memory information

syslinux-bot for H. Peter Anvin hpa at zytor.com
Sat Feb 6 23:27:02 PST 2010


Commit-ID:  9a02cdbe61c10146b5d7ffb85ef3dd5c15bdf784
Gitweb:     http://syslinux.zytor.com/commit/9a02cdbe61c10146b5d7ffb85ef3dd5c15bdf784
Author:     H. Peter Anvin <hpa at zytor.com>
AuthorDate: Sat, 6 Feb 2010 23:26:32 -0800
Committer:  H. Peter Anvin <hpa at zytor.com>
CommitDate: Sat, 6 Feb 2010 23:26:32 -0800

sysdump: fix the dumping of the e820 memory information

Need to advance the pointer...

Signed-off-by: H. Peter Anvin <hpa at zytor.com>


---
 com32/sysdump/memmap.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/com32/sysdump/memmap.c b/com32/sysdump/memmap.c
index bc938c9..c8cfc03 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);



More information about the Syslinux-commits mailing list