]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 13 Dec 2009 17:32:06 +0000 (18:32 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 13 Dec 2009 17:32:06 +0000 (18:32 +0100)
* kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
anything.

ChangeLog
kern/i386/pc/startup.S

index 548864ee8196d9e8649d8a68881be39ff2581270..5587f95f999cb5db4a3fdc4bdf2201af8b6a050e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
+       anything.
+
 2009-12-13  Carles Pina i Estany  <carles@pina.cat>
 
        * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
index 87365c0ed0a99c30bb36d09ddd8e7ed436fcbc88..4de14a3d1676e578881cffc02d274fd8e0282918 100644 (file)
@@ -146,6 +146,9 @@ multiboot_entry:
        /* obtain the boot device */
        movl    12(%ebx), %edx
 
+       movl    $GRUB_MEMORY_MACHINE_PROT_STACK, %ebp
+       movl    %ebp, %esp
+
        /* relocate the code */
        movl    $(GRUB_KERNEL_MACHINE_RAW_SIZE + 0x200), %ecx
        addl    EXT_C(grub_compressed_size) - _start + 0x100000 + 0x200, %ecx