Lines Matching +full:1 +full:- +full:9
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * arch/powerpc/boot/wii-head.S
6 * Copyright (C) 2008-2009 The GameCube Linux Team
14 * - if the data and instruction caches are enabled or not
15 * - if the MMU is enabled or not
16 * - if the high BATs are enabled or not
28 mfmsr 9
29 rlwinm 9, 9, 0, ~((1<<4)|(1<<5)) /* MSR_DR|MSR_IR */
30 bcl 20, 31, 1f
31 1:
34 addi 8, 8, _mmu_off - 1b
36 mtsrr1 9
63 li 9, 0x0002 /* rw */
64 mtspr 0x211, 9 /* IBAT0L */
66 mtspr 0x219, 9 /* DBAT0L */
71 lis 9, 0x0c00
72 ori 9, 9, 0x002a /* uncached, guarded, rw */
73 mtspr 0x21b, 9 /* DBAT1L */
78 lis 9, 0x0100
79 ori 9, 9, 0x0002 /* rw */
80 mtspr 0x215, 9 /* IBAT2L */
82 mtspr 0x21d, 9 /* DBAT2L */
87 lis 9, 0x1000
88 ori 9, 9, 0x0002 /* rw */
90 mtspr 0x217, 9 /* IBAT3L */
92 mtspr 0x21f, 9 /* DBAT3L */
101 andi. 0, 8, (1<<15) /* HID0_ICE */
102 bne 1f
103 ori 8, 8, (1<<15)|(1<<11) /* HID0_ICE|HID0_ICFI*/
104 1:
105 andi. 0, 8, (1<<14) /* HID0_DCE */
106 bne 1f
107 ori 8, 8, (1<<14)|(1<<10) /* HID0_DCE|HID0_DCFI*/
108 1:
118 bcl 20, 31, 1f
119 1:
121 addi 8, 8, _mmu_on - 1b
122 mfmsr 9
123 ori 9, 9, (1<<4)|(1<<5) /* MSR_DR|MSR_IR */
125 mtsrr1 9
132 lwz 9, 0(8)
133 ori 9, 9, 0x20
134 stw 9, 0(8)