]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 23 Oct 2011 21:55:38 +0000 (23:55 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 23 Oct 2011 21:55:38 +0000 (23:55 +0200)
save some space.
* include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
(GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.

ChangeLog
grub-core/lib/reed_solomon.c
include/grub/offsets.h

index 0198ba4ee30f82dd395e117461b54838ec257c69..ea8804bd16fe8bcac0627c74c4f60ae403579ff2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-10-23  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
+       save some space.
+       * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
+       (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
+
 2011-10-23  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
index 365b7600339151043509ca2e1283e5212801306c..78d249c2f379b72e59d292949c22b8a8a17a45bc 100644 (file)
@@ -57,13 +57,13 @@ typedef grub_uint16_t gf_double_t;
 #define GF_POLYNOMIAL 0x1d
 #define GF_INVERT2 0x8e
 #if defined (STANDALONE) && !defined (TEST)
-static char *gf_invert __attribute__ ((section(".text"))) = (void *) 0x100000;
+static gf_single_t * const gf_invert __attribute__ ((section(".text"))) = (void *) 0x100000;
 static char *scratch __attribute__ ((section(".text"))) = (void *) 0x100100;
 #else
 #if defined (STANDALONE)
 static char *scratch;
 #endif
-static grub_uint8_t gf_invert[256];
+static gf_single_t gf_invert[256];
 #endif
 
 #define SECTOR_SIZE 512
index aa65cd5cc6b1d0b89571d92c378cad5c292e38de..92354f7008cea99b191d7e6168bd61b7bf58ddcf 100644 (file)
@@ -35,9 +35,9 @@
 #define GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY    0x18
 
 /* The size of the first region which won't be compressed.  */
-#define GRUB_KERNEL_I386_PC_RAW_SIZE           0xcd0
+#define GRUB_KERNEL_I386_PC_RAW_SIZE           0xc70
 
-#define GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART 0x730
+#define GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART 0x6e0
 
 /* The segment where the kernel is loaded.  */
 #define GRUB_BOOT_I386_PC_KERNEL_SEG   0x800