Thomas Garnier | d899a7d | 2016-06-21 17:46:58 -0700 | [diff] [blame] | 1 | #ifndef _ASM_KASLR_H_ |
2 | #define _ASM_KASLR_H_ | ||||
3 | |||||
4 | unsigned long kaslr_get_random_long(const char *purpose); | ||||
5 | |||||
Thomas Garnier | 0483e1f | 2016-06-21 17:47:02 -0700 | [diff] [blame^] | 6 | #ifdef CONFIG_RANDOMIZE_MEMORY |
7 | void kernel_randomize_memory(void); | ||||
8 | #else | ||||
9 | static inline void kernel_randomize_memory(void) { } | ||||
10 | #endif /* CONFIG_RANDOMIZE_MEMORY */ | ||||
11 | |||||
Thomas Garnier | d899a7d | 2016-06-21 17:46:58 -0700 | [diff] [blame] | 12 | #endif |