15#ifndef __L4SYS__INCLUDE__ARCH_ARM__CACHE_H__
16#define __L4SYS__INCLUDE__ARCH_ARM__CACHE_H__
25l4_cache_op_arm_call(
unsigned long op,
30l4_cache_op_arm_call(
unsigned long op,
34 register unsigned long _op __asm__ (
"r0") = op;
35 register unsigned long _start __asm__ (
"r1") = start;
36 register unsigned long _end __asm__ (
"r2") = end;
39 (
"@ l4_cache_op_arm_call(start) \n\t"
41 "blx __l4_sys_syscall \n\t"
42 "@ l4_cache_op_arm_call(end) \n\t"
48 [sc]
"i" (L4_SYSCALL_MEM_OP),
53 "cc",
"memory",
"r5",
"ip",
"lr"
59 L4_MEM_CACHE_OP_CLEAN_DATA = 0,
60 L4_MEM_CACHE_OP_FLUSH_DATA = 1,
61 L4_MEM_CACHE_OP_INV_DATA = 2,
62 L4_MEM_CACHE_OP_COHERENT = 3,
63 L4_MEM_CACHE_OP_DMA_COHERENT = 4,
64 L4_MEM_CACHE_OP_DMA_COHERENT_FULL = 5,
71 l4_cache_op_arm_call(L4_MEM_CACHE_OP_CLEAN_DATA, start, end);
79 l4_cache_op_arm_call(L4_MEM_CACHE_OP_FLUSH_DATA, start, end);
87 l4_cache_op_arm_call(L4_MEM_CACHE_OP_INV_DATA, start, end);
95 l4_cache_op_arm_call(L4_MEM_CACHE_OP_COHERENT, start, end);
103 l4_cache_op_arm_call(L4_MEM_CACHE_OP_DMA_COHERENT, start, end);
110 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.