mirror of
https://github.com/torvalds/linux.git
synced 2024-12-26 21:02:19 +00:00
638d957b51
Change EFER to be a single u64 field instead of two u32 fields; change the order to maintain alignment. Note that on x86-64 cr4 is really also a 64-bit quantity, although we can only set the low 32 bits from the trampoline code since it is still executing in 32-bit mode at that point. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com> Cc: Jarkko Sakkinen <jarkko.sakkinen@intel.com>
63 lines
1.2 KiB
C
63 lines
1.2 KiB
C
#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;
|
|
/* SMP trampoline */
|
|
u32 trampoline_start;
|
|
u32 trampoline_status;
|
|
u32 trampoline_header;
|
|
#ifdef CONFIG_X86_64
|
|
u32 trampoline_pgd;
|
|
#endif
|
|
/* ACPI S3 wakeup */
|
|
#ifdef CONFIG_ACPI_SLEEP
|
|
u32 wakeup_start;
|
|
u32 wakeup_header;
|
|
#endif
|
|
/* APM/BIOS reboot */
|
|
#ifdef CONFIG_X86_32
|
|
u32 machine_real_restart_asm;
|
|
#endif
|
|
};
|
|
|
|
/* This must match data at trampoline_32/64.S */
|
|
struct trampoline_header {
|
|
#ifdef CONFIG_X86_32
|
|
u32 start;
|
|
u16 gdt_pad;
|
|
u16 gdt_limit;
|
|
u32 gdt_base;
|
|
#else
|
|
u64 start;
|
|
u64 efer;
|
|
u32 cr4;
|
|
#endif
|
|
};
|
|
|
|
extern struct real_mode_header *real_mode_header;
|
|
extern unsigned char real_mode_blob_end[];
|
|
|
|
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[];
|
|
|
|
#ifdef CONFIG_X86_32
|
|
extern unsigned char startup_32_smp[];
|
|
extern unsigned char boot_gdt[];
|
|
#else
|
|
extern unsigned char secondary_startup_64[];
|
|
#endif
|
|
|
|
extern void __init setup_real_mode(void);
|
|
|
|
#endif /* _ARCH_X86_REALMODE_H */
|