xref: /linux/tools/testing/selftests/powerpc/security/flush_utils.h (revision 6197e5b7b1b5acd1e9b04bdf3527c694d84a27e2)
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 
3 /*
4  * Copyright 2018 IBM Corporation.
5  */
6 
7 #ifndef _SELFTESTS_POWERPC_SECURITY_FLUSH_UTILS_H
8 #define _SELFTESTS_POWERPC_SECURITY_FLUSH_UTILS_H
9 
10 #define CACHELINE_SIZE 128
11 
12 void syscall_loop(char *p, unsigned long iterations,
13 		  unsigned long zero_size);
14 
15 void set_dscr(unsigned long val);
16 
17 #endif /* _SELFTESTS_POWERPC_SECURITY_FLUSH_UTILS_H */
18