xref: /OK3568_Linux_fs/kernel/arch/x86/realmode/rm/header.S (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun/* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun/*
3*4882a593Smuzhiyun * Real-mode blob header; this should match realmode.h and be
4*4882a593Smuzhiyun * readonly; for mutable data instead add pointers into the .data
5*4882a593Smuzhiyun * or .bss sections as appropriate.
6*4882a593Smuzhiyun */
7*4882a593Smuzhiyun
8*4882a593Smuzhiyun#include <linux/linkage.h>
9*4882a593Smuzhiyun#include <asm/page_types.h>
10*4882a593Smuzhiyun#include <asm/segment.h>
11*4882a593Smuzhiyun
12*4882a593Smuzhiyun#include "realmode.h"
13*4882a593Smuzhiyun
14*4882a593Smuzhiyun	.section ".header", "a"
15*4882a593Smuzhiyun
16*4882a593Smuzhiyun	.balign	16
17*4882a593SmuzhiyunSYM_DATA_START(real_mode_header)
18*4882a593Smuzhiyun	.long	pa_text_start
19*4882a593Smuzhiyun	.long	pa_ro_end
20*4882a593Smuzhiyun	/* SMP trampoline */
21*4882a593Smuzhiyun	.long	pa_trampoline_start
22*4882a593Smuzhiyun	.long	pa_trampoline_header
23*4882a593Smuzhiyun#ifdef CONFIG_AMD_MEM_ENCRYPT
24*4882a593Smuzhiyun	.long	pa_sev_es_trampoline_start
25*4882a593Smuzhiyun#endif
26*4882a593Smuzhiyun#ifdef CONFIG_X86_64
27*4882a593Smuzhiyun	.long	pa_trampoline_pgd;
28*4882a593Smuzhiyun#endif
29*4882a593Smuzhiyun	/* ACPI S3 wakeup */
30*4882a593Smuzhiyun#ifdef CONFIG_ACPI_SLEEP
31*4882a593Smuzhiyun	.long	pa_wakeup_start
32*4882a593Smuzhiyun	.long	pa_wakeup_header
33*4882a593Smuzhiyun#endif
34*4882a593Smuzhiyun	/* APM/BIOS reboot */
35*4882a593Smuzhiyun	.long	pa_machine_real_restart_asm
36*4882a593Smuzhiyun#ifdef CONFIG_X86_64
37*4882a593Smuzhiyun	.long	__KERNEL32_CS
38*4882a593Smuzhiyun#endif
39*4882a593SmuzhiyunSYM_DATA_END(real_mode_header)
40*4882a593Smuzhiyun
41*4882a593Smuzhiyun	/* End signature, used to verify integrity */
42*4882a593Smuzhiyun	.section ".signature","a"
43*4882a593Smuzhiyun	.balign 4
44*4882a593SmuzhiyunSYM_DATA(end_signature, .long REALMODE_END_SIGNATURE)
45