Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) #ifndef _ASM_X86_KASAN_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) #define _ASM_X86_KASAN_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) #include <linux/const.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) #define KASAN_SHADOW_OFFSET _AC(CONFIG_KASAN_SHADOW_OFFSET, UL)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) #define KASAN_SHADOW_SCALE_SHIFT 3
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)  * Compiler uses shadow offset assuming that addresses start
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)  * from 0. Kernel addresses don't start from 0, so shadow
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)  * for kernel really starts from compiler's shadow offset +
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13)  * 'kernel address space start' >> KASAN_SHADOW_SCALE_SHIFT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #define KASAN_SHADOW_START      (KASAN_SHADOW_OFFSET + \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 					((-1UL << __VIRTUAL_MASK_SHIFT) >> \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 						KASAN_SHADOW_SCALE_SHIFT))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19)  * 47 bits for kernel address -> (47 - KASAN_SHADOW_SCALE_SHIFT) bits for shadow
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20)  * 56 bits for kernel address -> (56 - KASAN_SHADOW_SCALE_SHIFT) bits for shadow
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) #define KASAN_SHADOW_END        (KASAN_SHADOW_START + \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 					(1ULL << (__VIRTUAL_MASK_SHIFT - \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 						  KASAN_SHADOW_SCALE_SHIFT)))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) #ifndef __ASSEMBLY__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) #ifdef CONFIG_KASAN
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) void __init kasan_early_init(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) void __init kasan_init(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) static inline void kasan_early_init(void) { }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) static inline void kasan_init(void) { }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) #endif