diff --git a/ChangeLog b/ChangeLog index e4ec9862a..23c288e98 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-07-28 Vladimir Serbinenko + + * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator): + Clear direction flag before jumping to OS. + (grub_multiboot2_real_boot): Likewise. + 2009-07-28 Felix Zielcke * util/i386/pc/grub-install: Fix parsing of --disk-module diff --git a/loader/i386/multiboot_helper.S b/loader/i386/multiboot_helper.S index d7539f193..d1094588b 100644 --- a/loader/i386/multiboot_helper.S +++ b/loader/i386/multiboot_helper.S @@ -71,6 +71,7 @@ VARIABLE(grub_multiboot_backward_relocator) rep movsb + cld jmp *%edx VARIABLE(grub_multiboot_backward_relocator_end) @@ -112,4 +113,6 @@ FUNCTION(grub_multiboot2_real_boot) /* Move the magic value into eax and jump to the kernel. */ movl $MULTIBOOT2_BOOTLOADER_MAGIC,%eax popl %ecx + + cld jmp *%ecx