mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:05:18 +07:00
61f5446169
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>
22 lines
485 B
C
22 lines
485 B
C
#ifndef ARCH_X86_REALMODE_RM_REALMODE_H
|
|
#define ARCH_X86_REALMODE_RM_REALMODE_H
|
|
|
|
#ifdef __ASSEMBLY__
|
|
|
|
/*
|
|
* 16-bit ljmpw to the real_mode_seg
|
|
*
|
|
* This must be open-coded since gas will choke on using a
|
|
* relocatable symbol for the segment portion.
|
|
*/
|
|
#define LJMPW_RM(to) .byte 0xea ; .word (to), real_mode_seg
|
|
|
|
#endif /* __ASSEMBLY__ */
|
|
|
|
/*
|
|
* Signature at the end of the realmode region
|
|
*/
|
|
#define REALMODE_END_SIGNATURE 0x65a22c82
|
|
|
|
#endif /* ARCH_X86_REALMODE_RM_REALMODE_H */
|