For simplicity in backporting, the original entry_flush test contained a lot of duplicated code from the rfi_flush test. De-duplicate that code. Signed-off-by: Daniel Axtens <dja@axtens.net> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
18 lines
387 B
C
18 lines
387 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
|
|
/*
|
|
* Copyright 2018 IBM Corporation.
|
|
*/
|
|
|
|
#ifndef _SELFTESTS_POWERPC_SECURITY_FLUSH_UTILS_H
|
|
#define _SELFTESTS_POWERPC_SECURITY_FLUSH_UTILS_H
|
|
|
|
#define CACHELINE_SIZE 128
|
|
|
|
void syscall_loop(char *p, unsigned long iterations,
|
|
unsigned long zero_size);
|
|
|
|
void set_dscr(unsigned long val);
|
|
|
|
#endif /* _SELFTESTS_POWERPC_SECURITY_FLUSH_UTILS_H */
|