summaryrefslogtreecommitdiff
path: root/include/x86/x86-linux.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/x86/x86-linux.h')
-rw-r--r--include/x86/x86-linux.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/include/x86/x86-linux.h b/include/x86/x86-linux.h
index 0949dc2..50c7324 100644
--- a/include/x86/x86-linux.h
+++ b/include/x86/x86-linux.h
@@ -12,8 +12,6 @@
#ifndef ASSEMBLY
-#define PACKED __attribute__((packed))
-
#ifndef E820_RAM
struct e820entry {
uint64_t addr; /* start of memory segment */
@@ -23,7 +21,7 @@ struct e820entry {
#define E820_RESERVED 2
#define E820_ACPI 3 /* usable as RAM once ACPI tables have been read */
#define E820_NVS 4
-} PACKED;
+} __attribute__((packed));
#endif
/* FIXME expand on drive_info_)struct... */
@@ -115,7 +113,8 @@ struct x86_linux_param_header {
uint32_t ext_ramdisk_image; /* 0xc0 */
uint32_t ext_ramdisk_size; /* 0xc4 */
uint32_t ext_cmd_line_ptr; /* 0xc8 */
- uint8_t reserved4_1[0x1e0 - 0xcc]; /* 0xcc */
+ uint8_t reserved4_1[0x1c0 - 0xcc]; /* 0xe4 */
+ uint8_t efi_info[32]; /* 0x1c0 */
uint32_t alt_mem_k; /* 0x1e0 */
uint8_t reserved5[4]; /* 0x1e4 */
uint8_t e820_map_nr; /* 0x1e8 */
@@ -255,7 +254,7 @@ struct x86_linux_header {
uint64_t pref_address; /* 0x258 */
uint32_t init_size; /* 0x260 */
uint32_t handover_offset; /* 0x264 */
-} PACKED;
+} __attribute__((packed));
#endif /* ASSEMBLY */