diff options
author | Huang, Ying <ying.huang@intel.com> | 2008-03-28 10:49:44 +0800 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-26 21:34:42 +0200 |
commit | 8b664aa66e824a0ddf4ec56d41fa0cf7bb374de6 (patch) | |
tree | 57c5de72c38f630e126964b922c379c4a7e49100 /include | |
parent | 50eae2a7c9862afe263a2003c12f457ecfc9e6a2 (diff) | |
download | op-kernel-dev-8b664aa66e824a0ddf4ec56d41fa0cf7bb374de6.zip op-kernel-dev-8b664aa66e824a0ddf4ec56d41fa0cf7bb374de6.tar.gz |
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')
-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 5115135..e865990 100644 --- a/include/asm-x86/bootparam.h +++ b/include/asm-x86/bootparam.h @@ -9,6 +9,17 @@ #include <asm/ist.h> #include <video/edid.h> +/* setup data types */ +#define SETUP_NONE 0 + +/* extensible setup data list node */ +struct setup_data { + u64 next; + u32 type; + u32 len; + u8 data[0]; +}; + struct setup_header { __u8 setup_sects; __u16 root_flags; @@ -46,6 +57,9 @@ struct setup_header { __u32 cmdline_size; __u32 hardware_subarch; __u64 hardware_subarch_data; + __u32 payload_offset; + __u32 payload_length; + __u64 setup_data; } __attribute__((packed)); struct sys_desc_table { |