1 /*-------------------------------------------------------------
3 cache_asm.S -- Cache interface
6 Michael Wiedenbauer (shagkur)
7 Dave Murphy (WinterMute)
9 This software is provided 'as-is', without any express or implied
10 warranty. In no event will the authors be held liable for any
11 damages arising from the use of this software.
13 Permission is granted to anyone to use this software for any
14 purpose, including commercial applications, and to alter it and
15 redistribute it freely, subject to the following restrictions:
17 1. The origin of this software must not be misrepresented; you
18 must not claim that you wrote the original software. If you use
19 this software in a product, an acknowledgment in the product
20 documentation would be appreciated but is not required.
22 2. Altered source versions must be plainly marked as such, and
23 must not be misrepresented as being the original software.
25 3. This notice may not be removed or altered from any source
29 -------------------------------------------------------------*/
34 .globl DCFlashInvalidate
94 .globl DCBlockInvalidate
99 .globl DCInvalidateRange
101 cmplwi r4, 0 # zero or negative size?
103 clrlwi. r5, r3, 27 # check for lower bits set in address
118 cmplwi r4, 0 # zero or negative size?
120 clrlwi. r5, r3, 27 # check for lower bits set in address
136 cmplwi r4, 0 # zero or negative size?
138 clrlwi. r5, r3, 27 # check for lower bits set in address
152 .globl DCFlushRangeNoSync
154 cmplwi r4, 0 # zero or negative size?
156 clrlwi. r5, r3, 27 # check for lower bits set in address
169 .globl DCStoreRangeNoSync
171 cmplwi r4, 0 # zero or negative size?
173 clrlwi. r5, r3, 27 # check for lower bits set in address
188 cmplwi r4, 0 # zero or negative size?
190 clrlwi. r5, r3, 27 # check for lower bits set in address
205 cmplwi r4, 0 # zero or negative size?
207 clrlwi. r5, r3, 27 # check for lower bits set in address
220 .globl ICInvalidateRange
222 cmplwi r4, 0 # zero or negative size?
224 clrlwi. r5, r3, 27 # check for lower bits set in address
239 .globl ICFlashInvalidate
279 .globl ICBlockInvalidate
302 bl L2GlobalInvalidate
329 .globl L2GlobalInvalidate