Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * arm64 KFENCE support.
0004  *
0005  * Copyright (C) 2020, Google LLC.
0006  */
0007 
0008 #ifndef __ASM_KFENCE_H
0009 #define __ASM_KFENCE_H
0010 
0011 #include <asm/set_memory.h>
0012 
0013 static inline bool arch_kfence_init_pool(void) { return true; }
0014 
0015 static inline bool kfence_protect_page(unsigned long addr, bool protect)
0016 {
0017     set_memory_valid(addr, 1, !protect);
0018 
0019     return true;
0020 }
0021 
0022 #endif /* __ASM_KFENCE_H */