3 #ifdef HAVE_ASM_CACHECTL_H
4 # include <asm/cachectl.h>
8 # include "xlat/cacheflush_scope.h"
10 static const struct xlat cacheflush_flags[] = {
11 #ifdef FLUSH_CACHE_BOTH
12 XLAT(FLUSH_CACHE_BOTH),
14 #ifdef FLUSH_CACHE_DATA
15 XLAT(FLUSH_CACHE_DATA),
17 #ifdef FLUSH_CACHE_INSN
18 XLAT(FLUSH_CACHE_INSN),
24 sys_cacheflush(struct tcb *tcp)
28 tprintf("%#lx, ", tcp->u_arg[0]);
30 printxval(cacheflush_scope, tcp->u_arg[1], "FLUSH_SCOPE_???");
33 printflags(cacheflush_flags, tcp->u_arg[2], "FLUSH_CACHE_???");
35 tprintf(", %lu", tcp->u_arg[3]);
42 static const struct xlat cacheflush_flags[] = {
50 sys_cacheflush(struct tcb *tcp)
54 tprintf("%#lx, ", tcp->u_arg[0]);
56 tprintf("%ld, ", tcp->u_arg[1]);
58 printxval(cacheflush_flags, tcp->u_arg[1], "?CACHE");
65 static const struct xlat cacheflush_flags[] = {
66 #ifdef CACHEFLUSH_D_INVAL
67 XLAT(CACHEFLUSH_D_INVAL),
69 #ifdef CACHEFLUSH_D_WB
70 XLAT(CACHEFLUSH_D_WB),
72 #ifdef CACHEFLUSH_D_PURGE
73 XLAT(CACHEFLUSH_D_PURGE),
82 sys_cacheflush(struct tcb *tcp)
86 tprintf("%#lx, ", tcp->u_arg[0]);
88 tprintf("%lu, ", tcp->u_arg[1]);
90 printflags(cacheflush_flags, tcp->u_arg[2], "CACHEFLUSH_???");