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
92 .globl DCBlockInvalidate
97 .globl DCInvalidateRange
99 cmplwi r4, 0 # zero or negative size?
101 clrlwi. r5, r3, 27 # check for lower bits set in address
116 cmplwi r4, 0 # zero or negative size?
118 clrlwi. r5, r3, 27 # check for lower bits set in address
134 cmplwi r4, 0 # zero or negative size?
136 clrlwi. r5, r3, 27 # check for lower bits set in address
150 .globl DCFlushRangeNoSync
152 cmplwi r4, 0 # zero or negative size?
154 clrlwi. r5, r3, 27 # check for lower bits set in address
167 .globl DCStoreRangeNoSync
169 cmplwi r4, 0 # zero or negative size?
171 clrlwi. r5, r3, 27 # check for lower bits set in address
186 cmplwi r4, 0 # zero or negative size?
188 clrlwi. r5, r3, 27 # check for lower bits set in address
203 cmplwi r4, 0 # zero or negative size?
205 clrlwi. r5, r3, 27 # check for lower bits set in address
218 .globl ICInvalidateRange
220 cmplwi r4, 0 # zero or negative size?
222 clrlwi. r5, r3, 27 # check for lower bits set in address
237 .globl ICFlashInvalidate
275 .globl ICBlockInvalidate
298 bl L2GlobalInvalidate
323 .globl L2GlobalInvalidate