Skip to content

Commit 62a3207

Browse files
author
H. Peter Anvin
committed
x86, intel_txt: Handle ACPI_SLEEP without X86_TRAMPOLINE
On 32 bits, we can have CONFIG_ACPI_SLEEP set without implying CONFIG_X86_TRAMPOLINE. In that case, we simply do not need to mark the trampoline as a MAC region. Signed-off-by: H. Peter Anvin <hpa@zytor.com> Cc: Shane Wang <shane.wang@intel.com> Cc: Joseph Cihula <joseph.cihula@intel.com>
1 parent 3c556e4 commit 62a3207

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎arch/x86/kernel/tboot.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,12 @@ static int tboot_setup_sleep(void)
189189

190190
/* S3 resume code */
191191
add_mac_region(acpi_wakeup_address, WAKEUP_SIZE);
192+
193+
#ifdef CONFIG_X86_TRAMPOLINE
192194
/* AP trampoline code */
193195
add_mac_region(virt_to_phys(trampoline_base), TRAMPOLINE_SIZE);
196+
#endif
197+
194198
/* kernel code + data + bss */
195199
add_mac_region(virt_to_phys(_text), _end - _text);
196200

0 commit comments

Comments
 (0)