diff options
Diffstat (limited to 'include/asm-i386/setup.h')
-rw-r--r-- | include/asm-i386/setup.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/asm-i386/setup.h b/include/asm-i386/setup.h index 0e8077cbfdac..0d5bff9dc4a5 100644 --- a/include/asm-i386/setup.h +++ b/include/asm-i386/setup.h | |||
@@ -26,12 +26,15 @@ | |||
26 | #define NEW_CL_POINTER 0x228 /* Relative to real mode data */ | 26 | #define NEW_CL_POINTER 0x228 /* Relative to real mode data */ |
27 | 27 | ||
28 | #ifndef __ASSEMBLY__ | 28 | #ifndef __ASSEMBLY__ |
29 | |||
30 | #include <asm/bootparam.h> | ||
31 | |||
29 | /* | 32 | /* |
30 | * This is set up by the setup-routine at boot-time | 33 | * This is set up by the setup-routine at boot-time |
31 | */ | 34 | */ |
32 | extern unsigned char boot_params[PARAM_SIZE]; | 35 | extern struct boot_params boot_params; |
33 | 36 | ||
34 | #define PARAM (boot_params) | 37 | #define PARAM ((char *)&boot_params) |
35 | #define SCREEN_INFO (*(struct screen_info *) (PARAM+0)) | 38 | #define SCREEN_INFO (*(struct screen_info *) (PARAM+0)) |
36 | #define EXT_MEM_K (*(unsigned short *) (PARAM+2)) | 39 | #define EXT_MEM_K (*(unsigned short *) (PARAM+2)) |
37 | #define ALT_MEM_K (*(unsigned long *) (PARAM+0x1e0)) | 40 | #define ALT_MEM_K (*(unsigned long *) (PARAM+0x1e0)) |
@@ -39,8 +42,7 @@ extern unsigned char boot_params[PARAM_SIZE]; | |||
39 | #define E820_MAP ((struct e820entry *) (PARAM+E820MAP)) | 42 | #define E820_MAP ((struct e820entry *) (PARAM+E820MAP)) |
40 | #define APM_BIOS_INFO (*(struct apm_bios_info *) (PARAM+0x40)) | 43 | #define APM_BIOS_INFO (*(struct apm_bios_info *) (PARAM+0x40)) |
41 | #define IST_INFO (*(struct ist_info *) (PARAM+0x60)) | 44 | #define IST_INFO (*(struct ist_info *) (PARAM+0x60)) |
42 | #define DRIVE_INFO (*(struct drive_info_struct *) (PARAM+0x80)) | 45 | #define SYS_DESC_TABLE (*(struct sys_desc_table *)(PARAM+0xa0)) |
43 | #define SYS_DESC_TABLE (*(struct sys_desc_table_struct*)(PARAM+0xa0)) | ||
44 | #define EFI_SYSTAB ((efi_system_table_t *) *((unsigned long *)(PARAM+0x1c4))) | 46 | #define EFI_SYSTAB ((efi_system_table_t *) *((unsigned long *)(PARAM+0x1c4))) |
45 | #define EFI_MEMDESC_SIZE (*((unsigned long *) (PARAM+0x1c8))) | 47 | #define EFI_MEMDESC_SIZE (*((unsigned long *) (PARAM+0x1c8))) |
46 | #define EFI_MEMDESC_VERSION (*((unsigned long *) (PARAM+0x1cc))) | 48 | #define EFI_MEMDESC_VERSION (*((unsigned long *) (PARAM+0x1cc))) |