blob: fadf48378adac71fdd9d4ef76f74b876e0572aa7 [file] [log] [blame]
Jarkko Sakkinenb3266bd2012-05-08 21:22:25 +03001/*
2 * Real-mode blob header; this should match realmode.h and be
3 * readonly; for mutable data instead add pointers into the .data
4 * or .bss sections as appropriate.
5 */
6
7#include <linux/linkage.h>
8#include <asm/page_types.h>
9
H. Peter Anvin61f54462012-05-21 00:02:45 -070010#include "realmode.h"
11
Jarkko Sakkinenf37240f2012-05-08 21:22:43 +030012 .section ".header", "a"
Jarkko Sakkinenb3266bd2012-05-08 21:22:25 +030013
Jarkko Sakkinencda846f2012-05-08 21:22:46 +030014 .balign 16
Jarkko Sakkinen8e029fc2012-05-08 21:22:40 +030015GLOBAL(real_mode_header)
Jarkko Sakkinenf37240f2012-05-08 21:22:43 +030016 .long pa_text_start
17 .long pa_ro_end
18 /* SMP trampoline */
19 .long pa_trampoline_start
20 .long pa_trampoline_status
21 .long pa_trampoline_header
22#ifdef CONFIG_X86_64
23 .long pa_trampoline_pgd;
Jarkko Sakkinen5a8c9ae2012-05-08 21:22:27 +030024#endif
Jarkko Sakkinenf37240f2012-05-08 21:22:43 +030025 /* ACPI S3 wakeup */
Jarkko Sakkinenc9b77cc2012-05-08 21:22:29 +030026#ifdef CONFIG_ACPI_SLEEP
Jarkko Sakkinenf37240f2012-05-08 21:22:43 +030027 .long pa_wakeup_start
28 .long pa_wakeup_header
29#endif
30 /* APM/BIOS reboot */
31#ifdef CONFIG_X86_32
32 .long pa_machine_real_restart_asm
Jarkko Sakkinenc9b77cc2012-05-08 21:22:29 +030033#endif
Jarkko Sakkinenb3266bd2012-05-08 21:22:25 +030034END(real_mode_header)
H. Peter Anvin61f54462012-05-21 00:02:45 -070035
36 /* End signature, used to verify integrity */
37 .section ".signature","a"
38 .balign 4
39GLOBAL(end_signature)
40 .long REALMODE_END_SIGNATURE
41END(end_signature)