L4Re - L4 Runtime Environment
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_AMD64__CACHE_H__
23 #define __L4SYS__INCLUDE__ARCH_AMD64__CACHE_H__
24 
25 #include_next <l4/sys/cache.h>
26 
27 L4_INLINE int
28 l4_cache_clean_data(unsigned long start,
29  unsigned long end) L4_NOTHROW
30 {
31  (void)start; (void)end;
32  return 0;
33 }
34 
35 L4_INLINE int
36 l4_cache_flush_data(unsigned long start,
37  unsigned long end) L4_NOTHROW
38 {
39  (void)start; (void)end;
40  return 0;
41 }
42 
43 L4_INLINE int
44 l4_cache_inv_data(unsigned long start,
45  unsigned long end) L4_NOTHROW
46 {
47  (void)start; (void)end;
48  return 0;
49 }
50 
51 L4_INLINE int
52 l4_cache_coherent(unsigned long start,
53  unsigned long end) L4_NOTHROW
54 {
55  (void)start; (void)end;
56  return 0;
57 }
58 
59 L4_INLINE int
60 l4_cache_dma_coherent(unsigned long start,
61  unsigned long end) L4_NOTHROW
62 {
63  (void)start; (void)end;
64  return 0;
65 }
66 
67 L4_INLINE int
69 {
70  return 0;
71 }
72 
73 #endif /* ! __L4SYS__INCLUDE__ARCH_AMD64__CACHE_H__ */
int l4_cache_coherent(unsigned long start, unsigned long end) L4_NOTHROW
Make memory coherent between I-cache and D-cache.
Definition: cache.h:108
int l4_cache_flush_data(unsigned long start, unsigned long end) L4_NOTHROW
Cache flush a range.
Definition: cache.h:92
int l4_cache_dma_coherent_full(void) L4_NOTHROW
Make memory coherent for use with external memory.
Definition: cache.h:124
int l4_cache_clean_data(unsigned long start, unsigned long end) L4_NOTHROW
Cache clean a range in D-cache.
Definition: cache.h:84
int l4_cache_dma_coherent(unsigned long start, unsigned long end) L4_NOTHROW
Make memory coherent for use with external memory.
Definition: cache.h:116
#define L4_NOTHROW
Mark a function declaration and definition as never throwing an exception.
Definition: compiler.h:185
int l4_cache_inv_data(unsigned long start, unsigned long end) L4_NOTHROW
Cache invalidate a range.
Definition: cache.h:100