From 492041bb0152660d8ad230947273979cdfbf5000 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Wed, 11 Jul 2007 12:18:35 -0700 Subject: [PATCH] --- yaml --- r: 58781 b: refs/heads/master c: 48c7ae674f03e56c78ff42c6796a36e90db67874 h: refs/heads/master i: 58779: fc26dc70836d220a474c236c9763838a698ea558 v: v3 --- [refs] | 2 +- trunk/arch/i386/kernel/setup.c | 12 +--- trunk/include/asm-i386/bootparam.h | 85 ++++++++++++++++++++++++++++ trunk/include/asm-i386/setup.h | 10 ++-- trunk/include/asm-x86_64/boot.h | 16 +----- trunk/include/asm-x86_64/bootparam.h | 1 + 6 files changed, 95 insertions(+), 31 deletions(-) create mode 100644 trunk/include/asm-i386/bootparam.h create mode 100644 trunk/include/asm-x86_64/bootparam.h diff --git a/[refs] b/[refs] index c8acb7711d40..0f168d7cf087 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 9c25d134b3735a4b197e108b4c7d6bbec1a275e8 +refs/heads/master: 48c7ae674f03e56c78ff42c6796a36e90db67874 diff --git a/trunk/arch/i386/kernel/setup.c b/trunk/arch/i386/kernel/setup.c index 698c24fe482e..2d61e65eeb50 100644 --- a/trunk/arch/i386/kernel/setup.c +++ b/trunk/arch/i386/kernel/setup.c @@ -102,19 +102,10 @@ static unsigned int highmem_pages = -1; /* * Setup options */ -struct drive_info_struct { char dummy[32]; } drive_info; -#if defined(CONFIG_BLK_DEV_IDE) || defined(CONFIG_BLK_DEV_HD) || \ - defined(CONFIG_BLK_DEV_IDE_MODULE) || defined(CONFIG_BLK_DEV_HD_MODULE) -EXPORT_SYMBOL(drive_info); -#endif struct screen_info screen_info; EXPORT_SYMBOL(screen_info); struct apm_info apm_info; EXPORT_SYMBOL(apm_info); -struct sys_desc_table_struct { - unsigned short length; - unsigned char table[0]; -}; struct edid_info edid_info; EXPORT_SYMBOL_GPL(edid_info); struct ist_info ist_info; @@ -134,7 +125,7 @@ unsigned long saved_videomode; static char __initdata command_line[COMMAND_LINE_SIZE]; -unsigned char __initdata boot_params[PARAM_SIZE]; +struct boot_params __initdata boot_params; #if defined(CONFIG_EDD) || defined(CONFIG_EDD_MODULE) struct edd edd; @@ -528,7 +519,6 @@ void __init setup_arch(char **cmdline_p) #endif ROOT_DEV = old_decode_dev(ORIG_ROOT_DEV); - drive_info = DRIVE_INFO; screen_info = SCREEN_INFO; edid_info = EDID_INFO; apm_info.bios = APM_BIOS_INFO; diff --git a/trunk/include/asm-i386/bootparam.h b/trunk/include/asm-i386/bootparam.h new file mode 100644 index 000000000000..427d8652bfde --- /dev/null +++ b/trunk/include/asm-i386/bootparam.h @@ -0,0 +1,85 @@ +#ifndef _ASM_BOOTPARAM_H +#define _ASM_BOOTPARAM_H + +#include +#include +#include +#include +#include +#include