]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Thu, 15 Dec 2011 18:20:41 +0000 (19:20 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Thu, 15 Dec 2011 18:20:41 +0000 (19:20 +0100)
non-RS part to avoid RS messing with GDT.
* include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
Increase to suit in realmode routines.

ChangeLog
grub-core/boot/i386/pc/startup_raw.S
include/grub/offsets.h

index 5a654270db4214b42e8f7f31988aa64d75512ae2..c3c3b1c362f48b6a14c99600953857f7a26862d0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2011-12-15  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
+       non-RS part to avoid RS messing with GDT.
+       * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
+       Increase to suit in realmode routines.
+
+2011-12-15  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/kern/i386/realmode.S: Increase alignment.
+       * grub-core/boot/i386/pc/startup_raw.S: Likewise.
+
 2011-12-14  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
index 3fae1e4e1a0b1e7f791db654ac49ab4f71999da1..ade2883b0f9a66599f85ed37509ec9fc4cdeb3fb 100644 (file)
@@ -108,6 +108,8 @@ LOCAL (codestart):
        call    EXT_C (grub_reed_solomon_recover)
        jmp     post_reed_solomon
 
+#include "../../../kern/i386/realmode.S"
+
 #include <rs_decoder.S>
 
        .text
@@ -185,8 +187,6 @@ post_reed_solomon:
        movl    $real_to_prot, %ecx
        jmp     *%esi
 
-#include "../../../kern/i386/realmode.S"
-
 /*
  * grub_gate_a20(int on)
  *
index 68ed084cbfe6c77a2f34e93a3a2aa01625d223c0..75a46e1283ad80d5bb77de83dd5a92007a7037af 100644 (file)
@@ -28,7 +28,7 @@
 /* Offset of reed_solomon_redundancy.  */
 #define GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY    0x10
 
-#define GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART 0x6e0
+#define GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART 0x7e0
 
 /* The segment where the kernel is loaded.  */
 #define GRUB_BOOT_I386_PC_KERNEL_SEG   0x800