26#ifndef __L4SYS__INCLUDE__ARCH_ARM__CACHE_H__
27#define __L4SYS__INCLUDE__ARCH_ARM__CACHE_H__
32#include_next <l4/sys/cache.h>
38l4_cache_op_arm_call(
unsigned long op,
43l4_cache_op_arm_call(
unsigned long op,
47 register unsigned long _op __asm__ (
"r0") = op;
48 register unsigned long _start __asm__ (
"r1") = start;
49 register unsigned long _end __asm__ (
"r2") = end;
52 (
"@ l4_cache_op_arm_call(start) \n\t"
54 "blx __l4_sys_syscall \n\t"
55 "@ l4_cache_op_arm_call(end) \n\t"
61 [sc]
"i" (L4_SYSCALL_MEM_OP),
66 "cc",
"memory",
"r5",
"ip",
"lr"
72 L4_MEM_CACHE_OP_CLEAN_DATA = 0,
73 L4_MEM_CACHE_OP_FLUSH_DATA = 1,
74 L4_MEM_CACHE_OP_INV_DATA = 2,
75 L4_MEM_CACHE_OP_COHERENT = 3,
76 L4_MEM_CACHE_OP_DMA_COHERENT = 4,
77 L4_MEM_CACHE_OP_DMA_COHERENT_FULL = 5,
84 l4_cache_op_arm_call(L4_MEM_CACHE_OP_CLEAN_DATA, start, end);
92 l4_cache_op_arm_call(L4_MEM_CACHE_OP_FLUSH_DATA, start, end);
100 l4_cache_op_arm_call(L4_MEM_CACHE_OP_INV_DATA, start, end);
108 l4_cache_op_arm_call(L4_MEM_CACHE_OP_COHERENT, start, end);
116 l4_cache_op_arm_call(L4_MEM_CACHE_OP_DMA_COHERENT, start, end);
123 l4_cache_op_arm_call(L4_MEM_CACHE_OP_DMA_COHERENT_FULL, 0, 0);
L4 compiler related defines.
int l4_cache_dma_coherent(unsigned long start, unsigned long end) L4_NOTHROW
Make memory coherent for use with external memory; writes back to PoC.
int l4_cache_dma_coherent_full(void) L4_NOTHROW
Make memory coherent for use with external memory; writes back to PoC.
int l4_cache_flush_data(unsigned long start, unsigned long end) L4_NOTHROW
Cache flush a range; writes back to PoC.
int l4_cache_coherent(unsigned long start, unsigned long end) L4_NOTHROW
Make memory coherent between I-cache and D-cache; writes back to PoU.
int l4_cache_clean_data(unsigned long start, unsigned long end) L4_NOTHROW
Cache clean a range in D-cache; writes back to PoC.
int l4_cache_inv_data(unsigned long start, unsigned long end) L4_NOTHROW
Cache invalidate a range; might write back to PoC.
#define L4_NOTHROW
Mark a function declaration and definition as never throwing an exception.
#define L4_INLINE
L4 Inline function attribute.
Syscall entry definitions.