OpenCores
URL https://opencores.org/ocsvn/c0or1k/c0or1k/trunk

Subversion Repositories c0or1k

[/] [c0or1k/] [trunk/] [docs/] [man/] [man7/] [l4_cache_control.7] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 drasko
.TH L4_CACHE_CONTROL 7 2009-11-07 "Codezero" "Codezero Programmer's Manual"
2
.SH NAME
3
.nf
4
.BR "l4_cache_control" " - Cache/TLB manipulation"
5
 
6
.SH SYNOPSIS
7
.nf
8
.B #include 
9
.B #include 
10
 
11
.BI "int l4_cache_control (unsigned int " "start" ", unsigned int " "end" ", unsigned int " "flags");
12
.SH DESCRIPTION
13
.B l4_cache_control()
14
enables a thread to invalidate and clean the cache memory.
15
.TP
16
.fi
17
.I start
18
denotes the start address(virtual memory address) of memory region to be invalidated/cleaned. This is not used in case of armv5.
19
 
20
.TP
21
.fi
22
.I end
23
denotes the end address(virtual memory address) of memory region to be invalidated/cleaned. This is not used in case of armv5.
24
 
25
.TP
26
.fi
27
.I flags
28
denotes the operation to be performed.
29
 
30
.TP
31
.BR L4_INVALIDATE_CACHE
32
Invalidate/flush both I and D caches.
33
 
34
.TP
35
.BR L4_INVALIDATE_ICACHE
36
Invalidate/flush I cache.
37
 
38
.TP
39
.BR L4_INVALIDATE_DCACHE
40
Invalidate/flush D cache.
41
 
42
.TP
43
.BR L4_CLEAN_DCACHE
44
Clean D cache.
45
 
46
.TP
47
.BR L4_CLEAN_INVALIDATE_DCACHE
48
Clean and Invalidate D cache.
49
 
50
.TP
51
.BR L4_CLEAN_INVALIDATE_CACHE
52
Invalidate/flush both I and D cache and Clean D cache.
53
 
54
.TP
55
.BR L4_DRAIN_WRITEBUFFER
56
Drain Write Buffer.
57
 
58
.TP
59
.BR L4_INVALIDATE_TLB
60
Invalidate/flush TLB.
61
 
62
.TP
63
.BR L4_INVALIDATE_ITLB
64
Invalidate/flush I TLB.
65
 
66
.TP
67
.BR L4_INVALIDATE_DTLB
68
Invalidate/flush D TLB.
69
 
70
.SH RETURN VALUE
71
.IR "l4_cache_control"()
72
Returns 0 on success, and negative value on failure. See below for error codes.
73
 
74
.SH ERRORS
75
.TP
76
.B -EINVAL
77
when a
78
.IR "flag"
79
is passed with invalid fields.
80
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.