aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/realmode/init.c')
-rw-r--r--arch/x86/realmode/init.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86/realmode/init.c b/arch/x86/realmode/init.c
index 0b7a63d98440..805a3271a137 100644
--- a/arch/x86/realmode/init.c
+++ b/arch/x86/realmode/init.c
@@ -4,6 +4,7 @@
4#include <asm/cacheflush.h> 4#include <asm/cacheflush.h>
5#include <asm/pgtable.h> 5#include <asm/pgtable.h>
6#include <asm/realmode.h> 6#include <asm/realmode.h>
7#include <asm/kaiser.h>
7 8
8struct real_mode_header *real_mode_header; 9struct real_mode_header *real_mode_header;
9u32 *trampoline_cr4_features; 10u32 *trampoline_cr4_features;
@@ -15,7 +16,8 @@ void __init reserve_real_mode(void)
15 size_t size = PAGE_ALIGN(real_mode_blob_end - real_mode_blob); 16 size_t size = PAGE_ALIGN(real_mode_blob_end - real_mode_blob);
16 17
17 /* Has to be under 1M so we can execute real-mode AP code. */ 18 /* Has to be under 1M so we can execute real-mode AP code. */
18 mem = memblock_find_in_range(0, 1<<20, size, PAGE_SIZE); 19 mem = memblock_find_in_range(0, 1 << 20, size,
20 KAISER_KERNEL_PGD_ALIGNMENT);
19 if (!mem) 21 if (!mem)
20 panic("Cannot allocate trampoline\n"); 22 panic("Cannot allocate trampoline\n");
21 23