From 151171fbb46bfa12a69e091f2740ed122acfea38 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Sat, 2 May 2009 13:52:04 -0700 Subject: [PATCH] mboot: move setting regs.eax to mboot_run() The setting of regs.eax in map_image() doesn't really make any sense; move it to mboot_run() instead. Signed-off-by: H. Peter Anvin --- com32/mboot/map.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/com32/mboot/map.c b/com32/mboot/map.c index b65c016..4c5eca2 100644 --- a/com32/mboot/map.c +++ b/com32/mboot/map.c @@ -111,8 +111,6 @@ int map_image(void *ptr, size_t len) unsigned int i; uint32_t bad_flags; - regs.eax = MULTIBOOT_VALID; - /* * Search for the multiboot header... */ @@ -325,5 +323,6 @@ void mboot_run(int bootflags) dprintf("Running, eip = 0x%08x, ebx = 0x%08x\n", regs.eip, regs.ebx); + regs.eax = MULTIBOOT_VALID; syslinux_shuffle_boot_pm(ml, mmap, bootflags, ®s); } -- 2.7.4