* grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix

size calculation.
	* grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
	none is known.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-03-08 18:54:25 +01:00
parent 55b20e588c
commit 52bfedfa39
3 changed files with 9 additions and 2 deletions

View file

@ -303,7 +303,7 @@ multiboot_entry:
movl %ebp, %esp
/* relocate the code */
movl $(LOCAL(decompressor_end) + 0x200), %ecx
movl $(LOCAL(decompressor_end) - _start + 0x200), %ecx
addl LOCAL(compressed_size) - _start + 0x100000 + 0x200, %ecx
movl $0x100000, %esi
movl $GRUB_BOOT_MACHINE_KERNEL_ADDR, %edi