diff options
author | Huang, Ying <ying.huang@intel.com> | 2008-03-27 22:49:44 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-26 15:34:42 -0400 |
commit | 8b664aa66e824a0ddf4ec56d41fa0cf7bb374de6 (patch) | |
tree | 57c5de72c38f630e126964b922c379c4a7e49100 /include/asm-x86 | |
parent | 50eae2a7c9862afe263a2003c12f457ecfc9e6a2 (diff) |
x86, boot: add linked list of struct setup_data
This patch adds a field of 64-bit physical pointer to NULL terminated
single linked list of struct setup_data to real-mode kernel
header. This is used as a more extensible boot parameters passing
mechanism.
Signed-off-by: Huang Ying <ying.huang@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/asm-x86')
-rw-r--r-- | include/asm-x86/bootparam.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/asm-x86/bootparam.h b/include/asm-x86/bootparam.h index 51151356840f..e8659909e5f6 100644 --- a/include/asm-x86/bootparam.h +++ b/include/asm-x86/bootparam.h | |||
@@ -9,6 +9,17 @@ | |||
9 | #include <asm/ist.h> | 9 | #include <asm/ist.h> |
10 | #include <video/edid.h> | 10 | #include <video/edid.h> |
11 | 11 | ||
12 | /* setup data types */ | ||
13 | #define SETUP_NONE 0 | ||
14 | |||
15 | /* extensible setup data list node */ | ||
16 | struct setup_data { | ||
17 | u64 next; | ||
18 | u32 type; | ||
19 | u32 len; | ||
20 | u8 data[0]; | ||
21 | }; | ||
22 | |||
12 | struct setup_header { | 23 | struct setup_header { |
13 | __u8 setup_sects; | 24 | __u8 setup_sects; |
14 | __u16 root_flags; | 25 | __u16 root_flags; |
@@ -46,6 +57,9 @@ struct setup_header { | |||
46 | __u32 cmdline_size; | 57 | __u32 cmdline_size; |
47 | __u32 hardware_subarch; | 58 | __u32 hardware_subarch; |
48 | __u64 hardware_subarch_data; | 59 | __u64 hardware_subarch_data; |
60 | __u32 payload_offset; | ||
61 | __u32 payload_length; | ||
62 | __u64 setup_data; | ||
49 | } __attribute__((packed)); | 63 | } __attribute__((packed)); |
50 | 64 | ||
51 | struct sys_desc_table { | 65 | struct sys_desc_table { |