summaryrefslogtreecommitdiff
path: root/arch/x86/realmode/rm/header.S
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2012-05-21 00:02:45 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2012-05-21 00:02:45 -0700
commit61f5446169046c217a5479517edac3a890c3bee7 (patch)
tree461c02f95e69f06a0d7a2cf8c349f1b6e08105ca /arch/x86/realmode/rm/header.S
parent8a3b947c40cb36100f316ac0d433f4ae554ee4cc (diff)
x86, realmode: Move end signature into header.S
The end signature was defined in wakeup_asm.S as it originally came from the ACPI wakeup code. However, we rely on the existence of the .signature section to expand .bss, otherwise we would have to include code to explicitly zero the .bss depending on the configuration. Since the expanded .bss is just in .init.data anyway, it's easier to always have it expanded. This fixes failures when compiled without CONFIG_ACPI_SLEEP. Reported-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: H. Peter Anvin <hpa@zytor.com> Cc: Jarkko Sakkinen <jarkko.sakkinen@intel.com>
Diffstat (limited to 'arch/x86/realmode/rm/header.S')
-rw-r--r--arch/x86/realmode/rm/header.S9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/x86/realmode/rm/header.S b/arch/x86/realmode/rm/header.S
index 4612d5382791..fadf48378ada 100644
--- a/arch/x86/realmode/rm/header.S
+++ b/arch/x86/realmode/rm/header.S
@@ -7,6 +7,8 @@
#include <linux/linkage.h>
#include <asm/page_types.h>
+#include "realmode.h"
+
.section ".header", "a"
.balign 16
@@ -30,3 +32,10 @@ GLOBAL(real_mode_header)
.long pa_machine_real_restart_asm
#endif
END(real_mode_header)
+
+ /* End signature, used to verify integrity */
+ .section ".signature","a"
+ .balign 4
+GLOBAL(end_signature)
+ .long REALMODE_END_SIGNATURE
+END(end_signature)