blob: a28221d94e69eb60fc18aab9c5997ed52a7a763f [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>
H. Peter Anvin65051392012-06-16 21:47:37 -07009#include <asm/segment.h>
Jarkko Sakkinenb3266bd2012-05-08 21:22:25 +030010
H. Peter Anvin61f54462012-05-21 00:02:45 -070011#include "realmode.h"
12
Jarkko Sakkinenf37240f2012-05-08 21:22:43 +030013 .section ".header", "a"
Jarkko Sakkinenb3266bd2012-05-08 21:22:25 +030014
Jarkko Sakkinencda846f2012-05-08 21:22:46 +030015 .balign 16
Jarkko Sakkinen8e029fc2012-05-08 21:22:40 +030016GLOBAL(real_mode_header)
Jarkko Sakkinenf37240f2012-05-08 21:22:43 +030017 .long pa_text_start
18 .long pa_ro_end
19 /* SMP trampoline */
20 .long pa_trampoline_start
21 .long pa_trampoline_status
22 .long pa_trampoline_header
23#ifdef CONFIG_X86_64
24 .long pa_trampoline_pgd;
Jarkko Sakkinen5a8c9ae2012-05-08 21:22:27 +030025#endif
Jarkko Sakkinenf37240f2012-05-08 21:22:43 +030026 /* ACPI S3 wakeup */
Jarkko Sakkinenc9b77cc2012-05-08 21:22:29 +030027#ifdef CONFIG_ACPI_SLEEP
Jarkko Sakkinenf37240f2012-05-08 21:22:43 +030028 .long pa_wakeup_start
29 .long pa_wakeup_header
30#endif
31 /* APM/BIOS reboot */
Jarkko Sakkinenf37240f2012-05-08 21:22:43 +030032 .long pa_machine_real_restart_asm
H. Peter Anvin65051392012-06-16 21:47:37 -070033#ifdef CONFIG_X86_64
34 .long __KERNEL32_CS
Jarkko Sakkinenc9b77cc2012-05-08 21:22:29 +030035#endif
Jarkko Sakkinenb3266bd2012-05-08 21:22:25 +030036END(real_mode_header)
H. Peter Anvin61f54462012-05-21 00:02:45 -070037
38 /* End signature, used to verify integrity */
39 .section ".signature","a"
40 .balign 4
41GLOBAL(end_signature)
42 .long REALMODE_END_SIGNATURE
43END(end_signature)