From 53ea95de527f146d902aaf442625e0fe6dd25524 Mon Sep 17 00:00:00 2001 From: Adam Lackorzynski Date: Mon, 30 Nov 2009 23:25:44 +0100 Subject: multiboot: Fix module loading and setting of mmap. Signed-off-by: Adam Lackorzynski Acked-by: Alexander Graf Signed-off-by: Anthony Liguori --- pc-bios/optionrom/multiboot.S | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'pc-bios/optionrom') diff --git a/pc-bios/optionrom/multiboot.S b/pc-bios/optionrom/multiboot.S index be5c9fc..9131837 100644 --- a/pc-bios/optionrom/multiboot.S +++ b/pc-bios/optionrom/multiboot.S @@ -62,6 +62,9 @@ run_multiboot: add %eax, %ebx movl %ebx, %gs:GS_GDT_DESC + 2 + xor %eax, %eax + mov %eax, %es + /* Read the bootinfo struct into RAM */ read_fw_blob(FW_CFG_INITRD) @@ -71,7 +74,7 @@ run_multiboot: mov %ax, %fs /* ES = mmap_addr */ - mov %eax, %fs:0x48 + mov %fs:48, %eax shr $4, %eax mov %ax, %es -- cgit v1.1