2 * Copyright (C) Paul Mackerras 1997.
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version
7 * 2 of the License, or (at your option) any later version.
12 * Use the BAT2 & 3 registers to map the 1st 16MB of RAM to
13 * the address given as the 1st argument.
18 rlwinm 5,5,16,16,31 /* r3 = 1 for 601, 4 for 604 */
22 mtibatl 3,0 /* invalidate BAT first */
23 ori 3,3,4 /* set up BAT registers for 601 */
32 4: mtdbatu 3,0 /* invalidate BATs first */
34 ori 3,3,0xff /* set up BAT registers for 604 */
51 * Flush the dcache and invalidate the icache for a range of addresses.
53 * flush_cache(addr, len)
57 addi 4,4,0x1f /* len = (len + 0x1f) / 0x20 */