* grub-core/kern/i386/qemu/init.c (resource): Decrease struct size

by using bitfields.
This commit is contained in:
Vladimir Serbinenko 2013-12-14 23:15:47 +01:00
parent bc8fcf4bd3
commit 6a5fe1328b
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/kern/i386/qemu/init.c (resource): Decrease struct size
by using bitfields.
2013-12-14 Vladimir Serbinenko <phcoder@gmail.com> 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/boot/i386/qemu/boot.S: Add missing EXT_C. * grub-core/boot/i386/qemu/boot.S: Add missing EXT_C.

View file

@ -85,9 +85,9 @@ heap_init (grub_uint64_t addr, grub_uint64_t size, grub_memory_type_t type,
struct resource struct resource
{ {
grub_pci_device_t dev; grub_pci_device_t dev;
int type;
grub_size_t size; grub_size_t size;
int bar; unsigned type:4;
unsigned bar:3;
}; };
struct iterator_ctx struct iterator_ctx