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),
27 tprintf("%#lx, ", tcp->u_arg[0]);
29 printxval(cacheflush_scope, tcp->u_arg[1], "FLUSH_SCOPE_???");
32 printflags(cacheflush_flags, tcp->u_arg[2], "FLUSH_CACHE_???");
34 tprintf(", %lu", tcp->u_arg[3]);
41 static const struct xlat cacheflush_flags[] = {
52 tprintf("%#lx, ", tcp->u_arg[0]);
54 tprintf("%ld, ", tcp->u_arg[1]);
56 printxval(cacheflush_flags, tcp->u_arg[1], "?CACHE");
63 static const struct xlat cacheflush_flags[] = {
64 #ifdef CACHEFLUSH_D_INVAL
65 XLAT(CACHEFLUSH_D_INVAL),
67 #ifdef CACHEFLUSH_D_WB
68 XLAT(CACHEFLUSH_D_WB),
70 #ifdef CACHEFLUSH_D_PURGE
71 XLAT(CACHEFLUSH_D_PURGE),
83 tprintf("%#lx, ", tcp->u_arg[0]);
85 tprintf("%lu, ", tcp->u_arg[1]);
87 printflags(cacheflush_flags, tcp->u_arg[2], "CACHEFLUSH_???");
98 tprintf("%#lx, %lu", tcp->u_arg[0], tcp->u_arg[3]);
99 /* scope and flags (cache type) are currently ignored */