1 /* SPDX-License-Identifier: GPL-2.0 */
3 * arch/arm/include/asm/kasan.h
5 * Copyright (c) 2015 Samsung Electronics Co., Ltd.
6 * Author: Andrey Ryabinin <ryabinin.a.a@gmail.com>
15 #include <asm/kasan_def.h>
17 #define KASAN_SHADOW_SCALE_SHIFT 3
20 * The compiler uses a shadow offset assuming that addresses start
21 * from 0. Kernel addresses don't start from 0, so shadow
22 * for kernel really starts from 'compiler's shadow offset' +
23 * ('kernel address space start' >> KASAN_SHADOW_SCALE_SHIFT)
26 asmlinkage
void kasan_early_init(void);
27 extern void kasan_init(void);
30 static inline void kasan_init(void) { }