kasan.h (1ac731c529cd4d6adbce134754b51ff7d822b145) | kasan.h (0a956d52e6fc31c52e5f21a134659a28e958480d) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef __ASM_KASAN_H 3#define __ASM_KASAN_H 4 5#if defined(CONFIG_KASAN) && !defined(CONFIG_CC_HAS_KASAN_MEMINTRINSIC_PREFIX) 6#define _GLOBAL_KASAN(fn) _GLOBAL(__##fn) 7#define _GLOBAL_TOC_KASAN(fn) _GLOBAL_TOC(__##fn) 8#define EXPORT_SYMBOL_KASAN(fn) EXPORT_SYMBOL(__##fn) --- 5 unchanged lines hidden (view full) --- 14 15#ifndef __ASSEMBLY__ 16 17#include <asm/page.h> 18#include <linux/sizes.h> 19 20#define KASAN_SHADOW_SCALE_SHIFT 3 21 | 1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef __ASM_KASAN_H 3#define __ASM_KASAN_H 4 5#if defined(CONFIG_KASAN) && !defined(CONFIG_CC_HAS_KASAN_MEMINTRINSIC_PREFIX) 6#define _GLOBAL_KASAN(fn) _GLOBAL(__##fn) 7#define _GLOBAL_TOC_KASAN(fn) _GLOBAL_TOC(__##fn) 8#define EXPORT_SYMBOL_KASAN(fn) EXPORT_SYMBOL(__##fn) --- 5 unchanged lines hidden (view full) --- 14 15#ifndef __ASSEMBLY__ 16 17#include <asm/page.h> 18#include <linux/sizes.h> 19 20#define KASAN_SHADOW_SCALE_SHIFT 3 21 |
22#if defined(CONFIG_MODULES) && defined(CONFIG_PPC32) | 22#if defined(CONFIG_EXECMEM) && defined(CONFIG_PPC32) |
23#define KASAN_KERN_START ALIGN_DOWN(PAGE_OFFSET - SZ_256M, SZ_256M) 24#else 25#define KASAN_KERN_START PAGE_OFFSET 26#endif 27 28#define KASAN_SHADOW_START (KASAN_SHADOW_OFFSET + \ 29 (KASAN_KERN_START >> KASAN_SHADOW_SCALE_SHIFT)) 30 --- 54 unchanged lines hidden --- | 23#define KASAN_KERN_START ALIGN_DOWN(PAGE_OFFSET - SZ_256M, SZ_256M) 24#else 25#define KASAN_KERN_START PAGE_OFFSET 26#endif 27 28#define KASAN_SHADOW_START (KASAN_SHADOW_OFFSET + \ 29 (KASAN_KERN_START >> KASAN_SHADOW_SCALE_SHIFT)) 30 --- 54 unchanged lines hidden --- |