2012-05-09 02:22:26 +08:00
|
|
|
#ifndef _ARCH_X86_REALMODE_H
|
|
|
|
#define _ARCH_X86_REALMODE_H
|
|
|
|
|
|
|
|
#include <linux/types.h>
|
|
|
|
#include <asm/io.h>
|
|
|
|
|
|
|
|
/* This must match data at realmode.S */
|
|
|
|
struct real_mode_header {
|
|
|
|
u32 text_start;
|
|
|
|
u32 ro_end;
|
|
|
|
u32 end;
|
2012-05-09 02:22:27 +08:00
|
|
|
/* reboot */
|
|
|
|
#ifdef CONFIG_X86_32
|
|
|
|
u32 machine_real_restart_asm;
|
2012-05-09 02:22:28 +08:00
|
|
|
#endif
|
|
|
|
/* SMP trampoline */
|
|
|
|
u32 trampoline_data;
|
|
|
|
u32 trampoline_status;
|
|
|
|
#ifdef CONFIG_X86_32
|
|
|
|
u32 startup_32_smp;
|
|
|
|
u32 boot_gdt;
|
|
|
|
#else
|
|
|
|
u32 startup_64_smp;
|
|
|
|
u32 level3_ident_pgt;
|
|
|
|
u32 level3_kernel_pgt;
|
2012-05-09 02:22:27 +08:00
|
|
|
#endif
|
2012-05-09 02:22:29 +08:00
|
|
|
#ifdef CONFIG_ACPI_SLEEP
|
|
|
|
u32 wakeup_start;
|
|
|
|
u32 wakeup_header;
|
|
|
|
#endif
|
2012-05-09 02:22:26 +08:00
|
|
|
} __attribute__((__packed__));
|
|
|
|
|
|
|
|
extern struct real_mode_header real_mode_header;
|
|
|
|
extern unsigned char *real_mode_base;
|
|
|
|
|
|
|
|
extern unsigned long init_rsp;
|
|
|
|
extern unsigned long initial_code;
|
|
|
|
extern unsigned long initial_gs;
|
|
|
|
|
|
|
|
extern unsigned char real_mode_blob[];
|
|
|
|
extern unsigned char real_mode_relocs[];
|
|
|
|
|
2012-05-09 02:22:28 +08:00
|
|
|
#ifdef CONFIG_X86_32
|
|
|
|
extern unsigned char startup_32_smp[];
|
|
|
|
extern unsigned char boot_gdt[];
|
|
|
|
#else
|
|
|
|
extern unsigned char secondary_startup_64[];
|
|
|
|
#endif
|
|
|
|
|
2012-05-09 02:22:26 +08:00
|
|
|
extern void __init setup_real_mode(void);
|
|
|
|
|
|
|
|
#endif /* _ARCH_X86_REALMODE_H */
|