Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
b3266bd6 JS |
2 | /* |
3 | * Real-mode blob header; this should match realmode.h and be | |
4 | * readonly; for mutable data instead add pointers into the .data | |
5 | * or .bss sections as appropriate. | |
6 | */ | |
7 | ||
8 | #include <linux/linkage.h> | |
9 | #include <asm/page_types.h> | |
65051397 | 10 | #include <asm/segment.h> |
b3266bd6 | 11 | |
61f54461 PA |
12 | #include "realmode.h" |
13 | ||
f37240f1 | 14 | .section ".header", "a" |
b3266bd6 | 15 | |
cda846f1 | 16 | .balign 16 |
78f44330 | 17 | SYM_DATA_START(real_mode_header) |
f37240f1 JS |
18 | .long pa_text_start |
19 | .long pa_ro_end | |
20 | /* SMP trampoline */ | |
21 | .long pa_trampoline_start | |
f37240f1 | 22 | .long pa_trampoline_header |
bf5ff276 JR |
23 | #ifdef CONFIG_AMD_MEM_ENCRYPT |
24 | .long pa_sev_es_trampoline_start | |
25 | #endif | |
f37240f1 | 26 | #ifdef CONFIG_X86_64 |
ff2e6468 | 27 | .long pa_trampoline_start64 |
f37240f1 | 28 | .long pa_trampoline_pgd; |
c9b77ccb | 29 | #endif |
f37240f1 | 30 | /* ACPI S3 wakeup */ |
c9b77ccb | 31 | #ifdef CONFIG_ACPI_SLEEP |
f37240f1 JS |
32 | .long pa_wakeup_start |
33 | .long pa_wakeup_header | |
34 | #endif | |
35 | /* APM/BIOS reboot */ | |
f37240f1 | 36 | .long pa_machine_real_restart_asm |
65051397 PA |
37 | #ifdef CONFIG_X86_64 |
38 | .long __KERNEL32_CS | |
5a8c9aeb | 39 | #endif |
78f44330 | 40 | SYM_DATA_END(real_mode_header) |
61f54461 PA |
41 | |
42 | /* End signature, used to verify integrity */ | |
43 | .section ".signature","a" | |
44 | .balign 4 | |
78f44330 | 45 | SYM_DATA(end_signature, .long REALMODE_END_SIGNATURE) |