diff options
author | H. Peter Anvin <hpa@zytor.com> | 2009-05-02 13:52:04 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-05-02 13:52:04 -0700 |
commit | 151171fbb46bfa12a69e091f2740ed122acfea38 (patch) | |
tree | e28bddebff7cb40b876f50bbdcba765ae4038d8c /com32/mboot/map.c | |
parent | 01c5b4edde1409dfc5cc84c71342ef671399022c (diff) | |
download | syslinux-151171fbb46bfa12a69e091f2740ed122acfea38.tar.gz syslinux-151171fbb46bfa12a69e091f2740ed122acfea38.tar.xz syslinux-151171fbb46bfa12a69e091f2740ed122acfea38.zip |
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 <hpa@zytor.com>
Diffstat (limited to 'com32/mboot/map.c')
-rw-r--r-- | com32/mboot/map.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/com32/mboot/map.c b/com32/mboot/map.c index b65c016a..4c5eca28 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); } |