1 #ifndef _ARCH_X86_REALMODE_H
2 #define _ARCH_X86_REALMODE_H
4 #include <linux/types.h>
7 /* This must match data at realmode.S */
8 struct real_mode_header {
13 u32 trampoline_status;
14 u32 trampoline_header;
19 #ifdef CONFIG_ACPI_SLEEP
24 u32 machine_real_restart_asm;
26 u32 machine_real_restart_seg;
30 /* This must match data at trampoline_32/64.S */
31 struct trampoline_header {
44 extern struct real_mode_header *real_mode_header;
45 extern unsigned char real_mode_blob_end[];
47 extern unsigned long initial_code;
48 extern unsigned long initial_gs;
49 extern unsigned long initial_stack;
51 extern unsigned char real_mode_blob[];
52 extern unsigned char real_mode_relocs[];
55 extern unsigned char startup_32_smp[];
56 extern unsigned char boot_gdt[];
58 extern unsigned char secondary_startup_64[];
61 static inline size_t real_mode_size_needed(void)
64 return 0; /* already allocated. */
66 return ALIGN(real_mode_blob_end - real_mode_blob, PAGE_SIZE);
69 void set_real_mode_mem(phys_addr_t mem, size_t size);
70 void reserve_real_mode(void);
72 #endif /* _ARCH_X86_REALMODE_H */