summaryrefslogtreecommitdiff
path: root/firmware/target/arm/mmu-armv6.S
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/mmu-armv6.S')
-rw-r--r--firmware/target/arm/mmu-armv6.S28
1 files changed, 4 insertions, 24 deletions
diff --git a/firmware/target/arm/mmu-armv6.S b/firmware/target/arm/mmu-armv6.S
index c4cb49ea26..30d719d475 100644
--- a/firmware/target/arm/mmu-armv6.S
+++ b/firmware/target/arm/mmu-armv6.S
@@ -36,11 +36,9 @@
36 .align 2 36 .align 2
37 .global commit_discard_dcache_range 37 .global commit_discard_dcache_range
38 .type commit_discard_dcache_range, %function 38 .type commit_discard_dcache_range, %function
39 .global invalidate_dcache_range @ Alias, deprecated
40 39
41 @ MVA format: 31:5 = Modified virtual address, 4:0 = SBZ 40 @ MVA format: 31:5 = Modified virtual address, 4:0 = SBZ
42commit_discard_dcache_range: 41commit_discard_dcache_range:
43invalidate_dcache_range:
44 add r1, r0, r1 @ size -> end 42 add r1, r0, r1 @ size -> end
45 cmp r1, r0 @ end <= start? 43 cmp r1, r0 @ end <= start?
46 subhi r1, r1, #1 @ round it down 44 subhi r1, r1, #1 @ round it down
@@ -60,11 +58,9 @@ invalidate_dcache_range:
60 .align 2 58 .align 2
61 .global commit_dcache_range 59 .global commit_dcache_range
62 .type commit_dcache_range, %function 60 .type commit_dcache_range, %function
63 .global clean_dcache_range @ Alias, deprecated
64 61
65 @ MVA format: 31:5 = Modified virtual address, 4:0 = SBZ 62 @ MVA format: 31:5 = Modified virtual address, 4:0 = SBZ
66commit_dcache_range: 63commit_dcache_range:
67clean_dcache_range:
68 add r1, r0, r1 @ size -> end 64 add r1, r0, r1 @ size -> end
69 cmp r1, r0 @ end <= start? 65 cmp r1, r0 @ end <= start?
70 subhi r1, r1, #1 @ round it down 66 subhi r1, r1, #1 @ round it down
@@ -83,11 +79,9 @@ clean_dcache_range:
83 .align 2 79 .align 2
84 .global discard_dcache_range 80 .global discard_dcache_range
85 .type discard_dcache_range, %function 81 .type discard_dcache_range, %function
86 .global dump_dcache_range @ Alias, deprecated
87 82
88 @ MVA format: 31:5 = Modified virtual address, 4:0 = SBZ 83 @ MVA format: 31:5 = Modified virtual address, 4:0 = SBZ
89discard_dcache_range: 84discard_dcache_range:
90dump_dcache_range:
91 add r1, r0, r1 @ size -> end 85 add r1, r0, r1 @ size -> end
92 cmp r1, r0 @ end <= start? 86 cmp r1, r0 @ end <= start?
93 bxls lr @ 87 bxls lr @
@@ -118,14 +112,8 @@ dump_dcache_range:
118 .align 2 112 .align 2
119 .global commit_dcache 113 .global commit_dcache
120 .type commit_dcache, %function 114 .type commit_dcache, %function
121 .global cpucache_commit @ Alias
122 .global clean_dcache @ Alias, deprecated
123 .global cpucache_flush @ Alias, deprecated
124 115
125commit_dcache: 116commit_dcache:
126cpucache_commit:
127clean_dcache:
128cpucache_flush:
129 mov r0, #0 @ 117 mov r0, #0 @
130 mcr p15, 0, r0, c7, c10, 0 @ Clean entire DCache 118 mcr p15, 0, r0, c7, c10, 0 @ Clean entire DCache
131 mcr p15, 0, r0, c7, c10, 4 @ Data synchronization barrier 119 mcr p15, 0, r0, c7, c10, 4 @ Data synchronization barrier
@@ -140,10 +128,8 @@ cpucache_flush:
140 .align 2 128 .align 2
141 .global commit_discard_dcache 129 .global commit_discard_dcache
142 .type commit_discard_dcache, %function 130 .type commit_discard_dcache, %function
143 .global invalidate_dcache @ Alias, deprecated
144 131
145commit_discard_dcache: 132commit_discard_dcache:
146invalidate_dcache:
147 mov r0, #0 @ 133 mov r0, #0 @
148 mcr p15, 0, r0, c7, c14, 0 @ Clean and invalidate entire DCache 134 mcr p15, 0, r0, c7, c14, 0 @ Clean and invalidate entire DCache
149 mcr p15, 0, r0, c7, c10, 4 @ Data synchronization barrier 135 mcr p15, 0, r0, c7, c10, 4 @ Data synchronization barrier
@@ -153,20 +139,14 @@ invalidate_dcache:
153 139
154/* 140/*
155 * Discards the entire ICache, and commit+discards the entire DCache 141 * Discards the entire ICache, and commit+discards the entire DCache
156 * void cpucache_commit_discard(void); 142 * void commit_discard_idcache(void);
157 */ 143 */
158 .section .icode.cpucache_commit_discard, "ax", %progbits 144 .section .icode.commit_discard_idcache, "ax", %progbits
159 .align 2 145 .align 2
160 .global cpucache_commit_discard 146 .global commit_discard_idcache
161 .type cpucache_commit_discard, %function 147 .type commit_discard_idcache, %function
162 .global commit_discard_idcache @ Alias
163 .global invalidate_idcache @ Alias, deprecated
164 .global cpucache_invalidate @ Alias, deprecated
165 148
166cpucache_commit_discard:
167commit_discard_idcache: 149commit_discard_idcache:
168invalidate_idcache:
169cpucache_invalidate:
170 mov r0, #0 @ 150 mov r0, #0 @
171 mcr p15, 0, r0, c7, c14, 0 @ Clean and invalidate entire DCache 151 mcr p15, 0, r0, c7, c14, 0 @ Clean and invalidate entire DCache
172 mcr p15, 0, r0, c7, c5, 0 @ Invalidate entire ICache 152 mcr p15, 0, r0, c7, c5, 0 @ Invalidate entire ICache