L4Re Operating System Framework – Interface and Usage Documentation
Loading...
Searching...
No Matches
cache.h
Go to the documentation of this file.
1
5/*
6 * (c) 2008-2009 Adam Lackorzynski <adam@os.inf.tu-dresden.de>
7 * economic rights: Technische Universität Dresden (Germany)
8 *
9 * This file is part of TUD:OS and distributed under the terms of the
10 * GNU General Public License 2.
11 * Please see the COPYING-GPL-2 file for details.
12 *
13 * As a special exception, you may use this file as part of a free software
14 * library without restriction. Specifically, if other files instantiate
15 * templates or use macros or inline functions from this file, or you compile
16 * this file and link it with other files to produce an executable, this
17 * file does not by itself cause the resulting executable to be covered by
18 * the GNU General Public License. This exception does not however
19 * invalidate any other reasons why the executable file might be covered by
20 * the GNU General Public License.
21 */
22#ifndef __L4SYS__INCLUDE__ARCH_X86__CACHE_H__
23#define __L4SYS__INCLUDE__ARCH_X86__CACHE_H__
24
25#include_next <l4/sys/cache.h>
26
27L4_INLINE int
28l4_cache_clean_data(unsigned long start,
29 unsigned long end) L4_NOTHROW
30{
31 (void)start; (void)end;
32 return 0;
33}
34
35L4_INLINE int
36l4_cache_flush_data(unsigned long start,
37 unsigned long end) L4_NOTHROW
38{
39 (void)start; (void)end;
40 return 0;
41}
42
43L4_INLINE int
44l4_cache_inv_data(unsigned long start,
45 unsigned long end) L4_NOTHROW
46{
47 (void)start; (void)end;
48 return 0;
49}
50
51L4_INLINE int
52l4_cache_coherent(unsigned long start,
53 unsigned long end) L4_NOTHROW
54{
55 (void)start; (void)end;
56 return 0;
57}
58
59L4_INLINE int
60l4_cache_dma_coherent(unsigned long start,
61 unsigned long end) L4_NOTHROW
62{
63 (void)start; (void)end;
64 return 0;
65}
66
67L4_INLINE int
69{
70 return 0;
71}
72
73#endif /* ! __L4SYS__INCLUDE__ARCH_X86__CACHE_H__ */
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:60
int l4_cache_dma_coherent_full(void) L4_NOTHROW
Make memory coherent for use with external memory; writes back to PoC.
Definition cache.h:68
int l4_cache_flush_data(unsigned long start, unsigned long end) L4_NOTHROW
Cache flush a range; writes back to PoC.
Definition cache.h:36
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:52
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:28
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:44
#define L4_NOTHROW
Mark a function declaration and definition as never throwing an exception.
Definition compiler.h:188
#define L4_INLINE
L4 Inline function attribute.
Definition compiler.h:62