1 2 #ifndef _X86_64_BOOTSETUP_H 3 #define _X86_64_BOOTSETUP_H 1 4 5 extern char x86_boot_params[2048]; 6 7 /* 8 * This is set up by the setup-routine at boot-time 9 */ 10 #define PARAM ((unsigned char *)x86_boot_params) 11 #define SCREEN_INFO (*(struct screen_info *) (PARAM+0)) 12 #define EXT_MEM_K (*(unsigned short *) (PARAM+2)) 13 #define ALT_MEM_K (*(unsigned int *) (PARAM+0x1e0)) 14 #define E820_MAP_NR (*(char*) (PARAM+E820NR)) 15 #define E820_MAP ((struct e820entry *) (PARAM+E820MAP)) 16 #define DRIVE_INFO (*(struct drive_info_struct *) (PARAM+0x80)) 17 #define SYS_DESC_TABLE (*(struct sys_desc_table_struct*)(PARAM+0xa0)) 18 #define MOUNT_ROOT_RDONLY (*(unsigned short *) (PARAM+0x1F2)) 19 #define RAMDISK_FLAGS (*(unsigned short *) (PARAM+0x1F8)) 20 #define ORIG_ROOT_DEV (*(unsigned short *) (PARAM+0x1FC)) 21 #define AUX_DEVICE_INFO (*(unsigned char *) (PARAM+0x1FF)) 22 #define LOADER_TYPE (*(unsigned char *) (PARAM+0x210)) 23 #define KERNEL_START (*(unsigned int *) (PARAM+0x214)) 24 #define INITRD_START (*(unsigned int *) (PARAM+0x218)) 25 #define INITRD_SIZE (*(unsigned int *) (PARAM+0x21c)) 26 #define COMMAND_LINE saved_command_line 27 #define COMMAND_LINE_SIZE 256 28 29 #define RAMDISK_IMAGE_START_MASK 0x07FF 30 #define RAMDISK_PROMPT_FLAG 0x8000 31 #define RAMDISK_LOAD_FLAG 0x4000 32 33 #endif 34