]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
Move uninitialised .data16 variables to .bss16; saves around 2000
authorMichael Brown <mcb30@etherboot.org>
Mon, 16 Jul 2007 12:22:12 +0000 (13:22 +0100)
committerMichael Brown <mcb30@etherboot.org>
Mon, 16 Jul 2007 12:22:12 +0000 (13:22 +0100)
bytes of useless zeroes in the final image.

src/arch/i386/core/basemem_packet.c
src/arch/i386/drivers/net/undiload.c
src/arch/i386/drivers/net/undinet.c
src/arch/i386/firmware/pcbios/memmap.c
src/arch/i386/image/multiboot.c
src/arch/i386/include/basemem_packet.h

index eedfaba46dfbd8386ca8b63f432fde339157e744..64e0bcc1d990448ebb7174c5e85518094e267e74 100644 (file)
@@ -27,4 +27,4 @@
 #include <basemem_packet.h>
 
 #undef basemem_packet
-char __data16_array ( basemem_packet, [BASEMEM_PACKET_LEN] );
+char __bss16_array ( basemem_packet, [BASEMEM_PACKET_LEN] );
index fc8d9194729aac4be6eb73f9d326f379fad4d002..a3284f802cc309bc6ead544638636e461fffb6d6 100644 (file)
  */
 
 /** Parameter block for calling UNDI loader */
-static struct s_UNDI_LOADER __data16 ( undi_loader );
+static struct s_UNDI_LOADER __bss16 ( undi_loader );
 #define undi_loader __use_data16 ( undi_loader )
 
 /** UNDI loader entry point */
-static SEGOFF16_t __data16 ( undi_loader_entry );
+static SEGOFF16_t __bss16 ( undi_loader_entry );
 #define undi_loader_entry __use_data16 ( undi_loader_entry )
 
 /**
index 6b2e0c9dd51b0ce85830172776bcce602da22796..38032ab1091f83f6154faf305f520008585cb2c7 100644 (file)
@@ -136,7 +136,7 @@ undinet_function_name ( unsigned int function ) {
  * Used as the paramter block for all UNDI API calls.  Resides in base
  * memory.
  */
-static union u_PXENV_ANY __data16 ( undinet_params );
+static union u_PXENV_ANY __bss16 ( undinet_params );
 #define undinet_params __use_data16 ( undinet_params )
 
 /** UNDI entry point
@@ -144,7 +144,7 @@ static union u_PXENV_ANY __data16 ( undinet_params );
  * Used as the indirection vector for all UNDI API calls.  Resides in
  * base memory.
  */
-SEGOFF16_t __data16 ( undinet_entry_point );
+SEGOFF16_t __bss16 ( undinet_entry_point );
 #define undinet_entry_point __use_data16 ( undinet_entry_point )
 
 /**
index 7c1f3602881699fc7ddf6234eedccee9e48a564c..318ba0910463c12e84c2fc8eaa6158ec2a621f03 100644 (file)
@@ -49,7 +49,7 @@ struct e820_entry {
 #define E820_TYPE_NVS          4 /**< ACPI NVS memory */
 
 /** Buffer for INT 15,e820 calls */
-static struct e820_entry __data16 ( e820buf );
+static struct e820_entry __bss16 ( e820buf );
 #define e820buf __use_data16 ( e820buf )
 
 /**
index 712024607939a4013570f59bcf0be848d9bc1117..ab0b55ace440c451a8b0b3dbcea9eb7014f9bd47 100644 (file)
@@ -195,7 +195,7 @@ multiboot_build_module_list ( struct image *image,
  * along with the other structures belonging to the Multiboot
  * information table.
  */
-static struct multiboot_info __data16 ( mbinfo );
+static struct multiboot_info __bss16 ( mbinfo );
 #define mbinfo __use_data16 ( mbinfo )
 
 /** The multiboot bootloader name */
@@ -204,11 +204,11 @@ static char __data16_array ( mb_bootloader_name, [] ) = "gPXE " VERSION;
 
 /** The multiboot memory map */
 static struct multiboot_memory_map
-       __data16_array ( mbmemmap, [MAX_MEMORY_REGIONS] );
+       __bss16_array ( mbmemmap, [MAX_MEMORY_REGIONS] );
 #define mbmemmap __use_data16 ( mbmemmap )
 
 /** The multiboot module list */
-static struct multiboot_module __data16_array ( mbmodules, [MAX_MODULES] );
+static struct multiboot_module __bss16_array ( mbmodules, [MAX_MODULES] );
 #define mbmodules __use_data16 ( mbmodules )
 
 /**
index 2f7212dc4f1eb498f642a06c00194a0beee2ea1d..e4d4f49cf71a61f31e859f0afe921d545dc0ed25 100644 (file)
@@ -7,7 +7,7 @@
 #define BASEMEM_PACKET_LEN 1514
 
 /** Base memory packet buffer */
-extern char __data16_array ( basemem_packet, [BASEMEM_PACKET_LEN] );
+extern char __bss16_array ( basemem_packet, [BASEMEM_PACKET_LEN] );
 #define basemem_packet __use_data16 ( basemem_packet )
 
 #endif /* BASEMEM_PACKET_H */