1 /* SPDX-License-Identifier: GPL-2.0 */
3 * arm64 KFENCE support.
5 * Copyright (C) 2020, Google LLC.
11 #include <asm/set_memory.h>
13 static inline bool arch_kfence_init_pool(void) { return true; }
15 static inline bool kfence_protect_page(unsigned long addr, bool protect)
17 set_memory_valid(addr, 1, !protect);
22 #endif /* __ASM_KFENCE_H */