]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/boot/i386/pc/lnxboot.S: Use
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 29 Jan 2012 22:20:02 +0000 (23:20 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 29 Jan 2012 22:20:02 +0000 (23:20 +0100)
GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
* grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
location.
* include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
definition.
(GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.

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

index 943ed0fad85011fe41c5be7b62d8c6bbe16b3381..e5f9f068d45ac100aa0fcb8482cf6bd245565d09 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2012-01-29  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/boot/i386/pc/lnxboot.S: Use
+       GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
+       * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
+       location.
+       * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
+       definition.
+       (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
+
 2012-01-29  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
index 9a516c69496c646e814ae945d1712c7207495cdc..e4bc8b4250802b9173d165a6f84b97022ae05ae0 100644 (file)
@@ -202,7 +202,7 @@ real_code_2:
 
        movl    $(DATA_ADDR + 0x1000), %edi
        movl    %ss:(DATA_ADDR + GRUB_DECOMPRESSOR_MACHINE_COMPRESSED_SIZE), %ecx
-       addl    $(0x9000 - 0x8200), %ecx
+       addl    $GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE, %ecx
 
 2:
        call    LOCAL(move_memory)
index 56f1ba957b0ec2cd044e8fd4a7e33ef15d3c3ae4..fdd408702f9e7d1768c87f19aac6901a2b70b4d3 100644 (file)
@@ -66,7 +66,7 @@ reed_solomon_redundancy:
 /*
  *  This is the area for all of the special variables.
  */
-
+       . = _start + GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE
 LOCAL(boot_dev):
        .byte   0xFF, 0xFF, 0xFF
 LOCAL(boot_drive):
index 21aea5cd634f023ccdd7622a7ff8bbd7a7a5cc28..d55e308c7b4fce24c927bd6640ef265615c839c7 100644 (file)
 /* Offset of field holding no reed solomon length.  */
 #define GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH      0x14
 
+#define GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE           0x18
+
+#define GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE (0x9000-0x8200)
+
 /* The segment where the kernel is loaded.  */
 #define GRUB_BOOT_I386_PC_KERNEL_SEG   0x800