1b2441318SGreg Kroah-Hartman/* SPDX-License-Identifier: GPL-2.0 */ 2b3266bd6SJarkko Sakkinen/* 3b3266bd6SJarkko Sakkinen * Real-mode blob header; this should match realmode.h and be 4b3266bd6SJarkko Sakkinen * readonly; for mutable data instead add pointers into the .data 5b3266bd6SJarkko Sakkinen * or .bss sections as appropriate. 6b3266bd6SJarkko Sakkinen */ 7b3266bd6SJarkko Sakkinen 8b3266bd6SJarkko Sakkinen#include <linux/linkage.h> 9b3266bd6SJarkko Sakkinen#include <asm/page_types.h> 1065051397SH. Peter Anvin#include <asm/segment.h> 11b3266bd6SJarkko Sakkinen 1261f54461SH. Peter Anvin#include "realmode.h" 1361f54461SH. Peter Anvin 14b3266bd6SJarkko Sakkinen .section ".header", "a" 15b3266bd6SJarkko Sakkinen 16cda846f1SJarkko Sakkinen .balign 16 1778f44330SJiri SlabySYM_DATA_START(real_mode_header) 18b3266bd6SJarkko Sakkinen .long pa_text_start 19b3266bd6SJarkko Sakkinen .long pa_ro_end 2048927bbbSJarkko Sakkinen /* SMP trampoline */ 21f37240f1SJarkko Sakkinen .long pa_trampoline_start 22f37240f1SJarkko Sakkinen .long pa_trampoline_header 23bf5ff276SJoerg Roedel#ifdef CONFIG_AMD_MEM_ENCRYPT 24bf5ff276SJoerg Roedel .long pa_sev_es_trampoline_start 25bf5ff276SJoerg Roedel#endif 26f37240f1SJarkko Sakkinen#ifdef CONFIG_X86_64 27*ff2e6468SSean Christopherson .long pa_trampoline_start64 28f37240f1SJarkko Sakkinen .long pa_trampoline_pgd; 2948927bbbSJarkko Sakkinen#endif 30f37240f1SJarkko Sakkinen /* ACPI S3 wakeup */ 31c9b77ccbSJarkko Sakkinen#ifdef CONFIG_ACPI_SLEEP 32c9b77ccbSJarkko Sakkinen .long pa_wakeup_start 33c9b77ccbSJarkko Sakkinen .long pa_wakeup_header 34c9b77ccbSJarkko Sakkinen#endif 35f37240f1SJarkko Sakkinen /* APM/BIOS reboot */ 36f37240f1SJarkko Sakkinen .long pa_machine_real_restart_asm 3765051397SH. Peter Anvin#ifdef CONFIG_X86_64 3865051397SH. Peter Anvin .long __KERNEL32_CS 39f37240f1SJarkko Sakkinen#endif 4078f44330SJiri SlabySYM_DATA_END(real_mode_header) 4161f54461SH. Peter Anvin 4261f54461SH. Peter Anvin /* End signature, used to verify integrity */ 4361f54461SH. Peter Anvin .section ".signature","a" 4461f54461SH. Peter Anvin .balign 4 4578f44330SJiri SlabySYM_DATA(end_signature, .long REALMODE_END_SIGNATURE) 46