projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
x86-64: Only set max_pfn_mapped to 512 MiB if we enter via head_64.S
[firefly-linux-kernel-4.4.55.git]
/
arch
/
x86
/
kernel
/
head64.c
diff --git
a/arch/x86/kernel/head64.c
b/arch/x86/kernel/head64.c
index 97adf9828b957697f532026bfe7278e27685e88b..2d2673c28aff2754af1e6e8848e9068ab1a6cca5 100644
(file)
--- a/
arch/x86/kernel/head64.c
+++ b/
arch/x86/kernel/head64.c
@@
-80,6
+80,8
@@
void __init x86_64_start_kernel(char * real_mode_data)
/* Cleanup the over mapped high alias */
cleanup_highmap();
+ max_pfn_mapped = KERNEL_IMAGE_SIZE >> PAGE_SHIFT;
+
for (i = 0; i < NUM_EXCEPTION_VECTORS; i++) {
#ifdef CONFIG_EARLY_PRINTK
set_intr_gate(i, &early_idt_handlers[i]);