Lines Matching +full:loongson +full:- +full:2 +full:k
1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2023 Loongson Technology Corporation Limited
12 #include <asm-generic/sections.h>
91 …return (void *)(((addr - XKVRANGE_VC_SHADOW_OFFSET) << KASAN_SHADOW_SCALE_SHIFT) + XKVRANGE_VC_STA… in kasan_shadow_to_mem()
93 …return (void *)(((addr - XKPRANGE_WC_SHADOW_OFFSET) << KASAN_SHADOW_SCALE_SHIFT) + XKPRANGE_WC_STA… in kasan_shadow_to_mem()
95 …return (void *)(((addr - XKPRANGE_UC_SHADOW_OFFSET) << KASAN_SHADOW_SCALE_SHIFT) + XKPRANGE_UC_STA… in kasan_shadow_to_mem()
97 …return (void *)(((addr - XKPRANGE_CC_SHADOW_OFFSET) << KASAN_SHADOW_SCALE_SHIFT) + XKPRANGE_CC_STA… in kasan_shadow_to_mem()
259 * here because it's nop on 2,3-level pagetable setups in clear_pgds()
273 * For example, PGDIR_SIZE of CONFIG_4KB_4LEVEL is 2^39, which is too in kasan_init()
274 * large for Loongson-2K series whose cpu_vabits = 39. in kasan_init()
285 * shadow memory, as the pgd value is none-zero. in kasan_init()
320 * should make sure that it maps the zero page read-only. in kasan_init()