L4Re Operating System Framework
Interface and Usage Documentation
Loading...
Searching...
No Matches
cache.h
Go to the documentation of this file.
1
5/*
6 * Copyright (C) 2021, 2024 Kernkonzept GmbH.
7 * Author(s): Georg Kotheimer <georg.kotheimer@kernkonzept.com>
8 *
9 * License: see LICENSE.spdx (in this directory or the directories above)
10 */
11#pragma once
12
13#include <l4/sys/ipc.h>
14#include <l4/sys/consts.h>
15#include <l4/sys/compiler.h>
16
17L4_INLINE int
18l4_cache_clean_data(unsigned long start,
19 unsigned long end) L4_NOTHROW
20{
21 (void)start;(void)end;
22 return 0;
23}
24
25L4_INLINE int
26l4_cache_flush_data(unsigned long start,
27 unsigned long end) L4_NOTHROW
28{
29 (void)start;(void)end;
30 return 0;
31}
32
33L4_INLINE int
34l4_cache_inv_data(unsigned long start,
35 unsigned long end) L4_NOTHROW
36{
37 (void)start;(void)end;
38 return 0;
39}
40
41L4_INLINE int
42l4_cache_coherent(unsigned long start,
43 unsigned long end) L4_NOTHROW
44{
45 (void)start;(void)end;
46 asm volatile ("fence.i");
47 return 0;
48}
49
50L4_INLINE int
51l4_cache_dma_coherent(unsigned long start,
52 unsigned long end) L4_NOTHROW
53{
54 (void)start;(void)end;
55 return 0;
56}
57
58L4_INLINE int
60{
61 return 0;
62}
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.
Definition cache.h:47
int l4_cache_dma_coherent_full(void) L4_NOTHROW
Make memory coherent for use with external memory; writes back to PoC.
Definition cache.h:55
int l4_cache_flush_data(unsigned long start, unsigned long end) L4_NOTHROW
Cache flush a range; writes back to PoC.
Definition cache.h:23
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.
Definition cache.h:39
int l4_cache_clean_data(unsigned long start, unsigned long end) L4_NOTHROW
Cache clean a range in D-cache; writes back to PoC.
Definition cache.h:15
int l4_cache_inv_data(unsigned long start, unsigned long end) L4_NOTHROW
Cache invalidate a range; might write back to PoC.
Definition cache.h:31
#define L4_NOTHROW
Mark a function declaration and definition as never throwing an exception.
Definition compiler.h:167
#define L4_INLINE
L4 Inline function attribute.
Definition compiler.h:51
Common constants.
Common IPC interface.