OLD | NEW |
1 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 1 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
2 | 2 |
3 #include <linux/kernel.h> | 3 #include <linux/kernel.h> |
4 #include <linux/export.h> | 4 #include <linux/export.h> |
5 #include <linux/init.h> | 5 #include <linux/init.h> |
6 #include <linux/bootmem.h> | 6 #include <linux/bootmem.h> |
7 #include <linux/percpu.h> | 7 #include <linux/percpu.h> |
8 #include <linux/kexec.h> | 8 #include <linux/kexec.h> |
9 #include <linux/crash_dump.h> | 9 #include <linux/crash_dump.h> |
10 #include <linux/smp.h> | 10 #include <linux/smp.h> |
11 #include <linux/topology.h> | 11 #include <linux/topology.h> |
12 #include <linux/pfn.h> | 12 #include <linux/pfn.h> |
13 #include <asm/sections.h> | 13 #include <asm/sections.h> |
14 #include <asm/processor.h> | 14 #include <asm/processor.h> |
15 #include <asm/desc.h> | 15 #include <asm/desc.h> |
16 #include <asm/setup.h> | 16 #include <asm/setup.h> |
17 #include <asm/mpspec.h> | 17 #include <asm/mpspec.h> |
18 #include <asm/apicdef.h> | 18 #include <asm/apicdef.h> |
19 #include <asm/highmem.h> | 19 #include <asm/highmem.h> |
20 #include <asm/proto.h> | 20 #include <asm/proto.h> |
21 #include <asm/cpumask.h> | 21 #include <asm/cpumask.h> |
22 #include <asm/cpu.h> | 22 #include <asm/cpu.h> |
23 #include <asm/stackprotector.h> | 23 #include <asm/stackprotector.h> |
| 24 #include <asm/kasan.h> |
24 | 25 |
25 DEFINE_PER_CPU_READ_MOSTLY(int, cpu_number); | 26 DEFINE_PER_CPU_READ_MOSTLY(int, cpu_number); |
26 EXPORT_PER_CPU_SYMBOL(cpu_number); | 27 EXPORT_PER_CPU_SYMBOL(cpu_number); |
27 | 28 |
28 #ifdef CONFIG_X86_64 | 29 #ifdef CONFIG_X86_64 |
29 #define BOOT_PERCPU_OFFSET ((unsigned long)__per_cpu_load) | 30 #define BOOT_PERCPU_OFFSET ((unsigned long)__per_cpu_load) |
30 #else | 31 #else |
31 #define BOOT_PERCPU_OFFSET 0 | 32 #define BOOT_PERCPU_OFFSET 0 |
32 #endif | 33 #endif |
33 | 34 |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 KERNEL_PGD_PTRS); | 303 KERNEL_PGD_PTRS); |
303 | 304 |
304 /* | 305 /* |
305 * sync back low identity map too. It is used for example | 306 * sync back low identity map too. It is used for example |
306 * in the 32-bit EFI stub. | 307 * in the 32-bit EFI stub. |
307 */ | 308 */ |
308 clone_pgd_range(initial_page_table, | 309 clone_pgd_range(initial_page_table, |
309 swapper_pg_dir + KERNEL_PGD_BOUNDARY, | 310 swapper_pg_dir + KERNEL_PGD_BOUNDARY, |
310 min(KERNEL_PGD_PTRS, KERNEL_PGD_BOUNDARY)); | 311 min(KERNEL_PGD_PTRS, KERNEL_PGD_BOUNDARY)); |
311 #endif | 312 #endif |
| 313 kasan_init_late(); |
312 } | 314 } |
OLD | NEW |