aboutsummaryrefslogtreecommitdiffstats
path: root/com32/sysdump/memmap.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-02-07 15:14:21 -0800
committerH. Peter Anvin <hpa@zytor.com>2010-02-07 15:14:21 -0800
commit88f5f9b480f036ef9da9cf9deb41935c9ad9743c (patch)
treed4aae48e5a3f2b8d618ca5675c87f852d744ac46 /com32/sysdump/memmap.c
parent257adb86a34db443100d9e18891ce98f2518333f (diff)
downloadsyslinux-88f5f9b480f036ef9da9cf9deb41935c9ad9743c.tar.gz
syslinux-88f5f9b480f036ef9da9cf9deb41935c9ad9743c.tar.xz
syslinux-88f5f9b480f036ef9da9cf9deb41935c9ad9743c.zip
sysdump: change to a two-phase generate/output model, buffer in memory
Instead of outputting data as it is generated, buffer it all in memory and then output it all at once. This not only gives us exact size and so on before we start, but turns out to be faster at least for TFTP. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'com32/sysdump/memmap.c')
-rw-r--r--com32/sysdump/memmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/sysdump/memmap.c b/com32/sysdump/memmap.c
index c8cfc032..a85f0925 100644
--- a/com32/sysdump/memmap.c
+++ b/com32/sysdump/memmap.c
@@ -33,7 +33,7 @@ static void dump_e820(struct backend *be)
ireg.ecx.l = sizeof curr->data;
ireg.es = SEG(curr->data);
ireg.edi.w[0] = OFFS(curr->data);
-
+
do {
__intcall(0x15, &ireg, &oreg);
if ((oreg.eflags.l & EFLAGS_CF) ||