18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0+ */ 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ci/* 48c2ecf20Sopenharmony_ci * Copyright 2018 IBM Corporation. 58c2ecf20Sopenharmony_ci */ 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci#ifndef _SELFTESTS_POWERPC_SECURITY_FLUSH_UTILS_H 88c2ecf20Sopenharmony_ci#define _SELFTESTS_POWERPC_SECURITY_FLUSH_UTILS_H 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ci#define CACHELINE_SIZE 128 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci#define PERF_L1D_READ_MISS_CONFIG ((PERF_COUNT_HW_CACHE_L1D) | \ 138c2ecf20Sopenharmony_ci (PERF_COUNT_HW_CACHE_OP_READ << 8) | \ 148c2ecf20Sopenharmony_ci (PERF_COUNT_HW_CACHE_RESULT_MISS << 16)) 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_civoid syscall_loop(char *p, unsigned long iterations, 178c2ecf20Sopenharmony_ci unsigned long zero_size); 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_civoid set_dscr(unsigned long val); 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci#endif /* _SELFTESTS_POWERPC_SECURITY_FLUSH_UTILS_H */ 22