mem.c (03ab8e6297acd1bc0eedaa050e2a1635c576fd11) | mem.c (5b301409e8bc5d7fad2ee138be44c5c529dd0874) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (C) 2000 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) 4 */ 5 6#include <linux/stddef.h> 7#include <linux/module.h> 8#include <linux/memblock.h> --- 4 unchanged lines hidden (view full) --- 13#include <asm/fixmap.h> 14#include <asm/page.h> 15#include <as-layout.h> 16#include <init.h> 17#include <kern.h> 18#include <kern_util.h> 19#include <mem_user.h> 20#include <os.h> | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (C) 2000 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) 4 */ 5 6#include <linux/stddef.h> 7#include <linux/module.h> 8#include <linux/memblock.h> --- 4 unchanged lines hidden (view full) --- 13#include <asm/fixmap.h> 14#include <asm/page.h> 15#include <as-layout.h> 16#include <init.h> 17#include <kern.h> 18#include <kern_util.h> 19#include <mem_user.h> 20#include <os.h> |
21#include <linux/sched/task.h> |
|
21 | 22 |
23#ifdef CONFIG_KASAN 24int kasan_um_is_ready; 25void kasan_init(void) 26{ 27 /* 28 * kasan_map_memory will map all of the required address space and 29 * the host machine will allocate physical memory as necessary. 30 */ 31 kasan_map_memory((void *)KASAN_SHADOW_START, KASAN_SHADOW_SIZE); 32 init_task.kasan_depth = 0; 33 kasan_um_is_ready = true; 34} 35 36static void (*kasan_init_ptr)(void) 37__section(".kasan_init") __used 38= kasan_init; 39#endif 40 |
|
22/* allocated in paging_init, zeroed in mem_init, and unchanged thereafter */ 23unsigned long *empty_zero_page = NULL; 24EXPORT_SYMBOL(empty_zero_page); 25 26/* 27 * Initialized during boot, and readonly for initializing page tables 28 * afterwards 29 */ --- 170 unchanged lines hidden --- | 41/* allocated in paging_init, zeroed in mem_init, and unchanged thereafter */ 42unsigned long *empty_zero_page = NULL; 43EXPORT_SYMBOL(empty_zero_page); 44 45/* 46 * Initialized during boot, and readonly for initializing page tables 47 * afterwards 48 */ --- 170 unchanged lines hidden --- |