xref: /openbmc/linux/arch/x86/include/asm/kaslr.h (revision bc5aa3a0)
1 #ifndef _ASM_KASLR_H_
2 #define _ASM_KASLR_H_
3 
4 unsigned long kaslr_get_random_long(const char *purpose);
5 
6 #ifdef CONFIG_RANDOMIZE_MEMORY
7 extern unsigned long page_offset_base;
8 extern unsigned long vmalloc_base;
9 
10 void kernel_randomize_memory(void);
11 #else
12 static inline void kernel_randomize_memory(void) { }
13 #endif /* CONFIG_RANDOMIZE_MEMORY */
14 
15 #endif
16