xref: /kernel/linux/linux-5.10/arch/riscv/include/asm/kasan.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/arch/riscv/include/asm/
18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/* Copyright (C) 2019 Andes Technology Corporation */
38c2ecf20Sopenharmony_ci
48c2ecf20Sopenharmony_ci#ifndef __ASM_KASAN_H
58c2ecf20Sopenharmony_ci#define __ASM_KASAN_H
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci#ifndef __ASSEMBLY__
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci#ifdef CONFIG_KASAN
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci#define KASAN_SHADOW_SCALE_SHIFT	3
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci#define KASAN_SHADOW_SIZE	(UL(1) << (38 - KASAN_SHADOW_SCALE_SHIFT))
148c2ecf20Sopenharmony_ci#define KASAN_SHADOW_START	KERN_VIRT_START /* 2^64 - 2^38 */
158c2ecf20Sopenharmony_ci#define KASAN_SHADOW_END	(KASAN_SHADOW_START + KASAN_SHADOW_SIZE)
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci#define KASAN_SHADOW_OFFSET	_AC(CONFIG_KASAN_SHADOW_OFFSET, UL)
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_civoid kasan_init(void);
208c2ecf20Sopenharmony_ciasmlinkage void kasan_early_init(void);
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ci#endif
238c2ecf20Sopenharmony_ci#endif
248c2ecf20Sopenharmony_ci#endif /* __ASM_KASAN_H */
25

Indexes created Thu Nov 07 10:32:03 CST 2024