cregit-Linux how code gets into the kernel

Release 4.18 arch/xtensa/include/asm/kasan.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __ASM_KASAN_H

#define __ASM_KASAN_H

#ifndef __ASSEMBLY__

#ifdef CONFIG_KASAN

#include <linux/kernel.h>
#include <linux/sizes.h>
#include <asm/kmem_layout.h>


#define KASAN_SHADOW_SCALE_SHIFT 3

/* Start of area covered by KASAN */

#define KASAN_START_VADDR __XTENSA_UL_CONST(0x90000000)
/* Start of the shadow map */

#define KASAN_SHADOW_START (XCHAL_PAGE_TABLE_VADDR + XCHAL_PAGE_TABLE_SIZE)
/* Size of the shadow map */

#define KASAN_SHADOW_SIZE (-KASAN_START_VADDR >> KASAN_SHADOW_SCALE_SHIFT)
/* Offset for mem to shadow address transformation */

#define KASAN_SHADOW_OFFSET __XTENSA_UL_CONST(CONFIG_KASAN_SHADOW_OFFSET)

void __init kasan_early_init(void);
void __init kasan_init(void);

#else


static inline void kasan_early_init(void) { }

Contributors

PersonTokensPropCommitsCommitProp
Max Filippov8100.00%1100.00%
Total8100.00%1100.00%


static inline void kasan_init(void) { }

Contributors

PersonTokensPropCommitsCommitProp
Max Filippov8100.00%1100.00%
Total8100.00%1100.00%

#endif #endif #endif

Overall Contributors

PersonTokensPropCommitsCommitProp
Max Filippov84100.00%2100.00%
Total84100.00%2100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.