MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / Config24MB

Function Config24MB

src/dolphin/src/os/OSMemory.c:54–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54asm void Config24MB()
55{
56 // clang-format off
57 nofralloc
58
59 addi r7,r0,0
60
61 addis r4,r0,0x00000002@ha
62 addi r4,r4,0x00000002@l
63 addis r3,r0,0x800001ff@ha
64 addi r3,r3,0x800001ff@l
65
66 addis r6,r0,0x01000002@ha
67 addi r6,r6,0x01000002@l
68 addis r5,r0,0x810000ff@ha
69 addi r5,r5,0x810000ff@l
70
71 isync
72
73 mtspr dbat0u,r7
74 mtspr dbat0l,r4
75 mtspr dbat0u,r3
76 isync
77
78 mtspr ibat0u,r7
79 mtspr ibat0l,r4
80 mtspr ibat0u,r3
81 isync
82
83 mtspr dbat2u,r7
84 mtspr dbat2l,r6
85 mtspr dbat2u,r5
86 isync
87
88 mtspr ibat2u,r7
89 mtspr ibat2l,r6
90 mtspr ibat2u,r5
91 isync
92
93 mfmsr r3
94 ori r3, r3, 0x30
95 mtsrr1 r3
96
97 mflr r3
98 mtsrr0 r3
99 rfi
100 // clang-format on
101}
102
103asm void Config48MB()
104{
105 // clang-format off
106 nofralloc
107
108 addi r7,r0,0x0000
109
110 addis r4,r0,0x00000002@ha
111 addi r4,r4,0x00000002@l

Callers

nothing calls this directly

Calls 4

OSDisableInterruptsFunction · 0.85
__OSMaskInterruptsFunction · 0.85
OSRegisterResetFunctionFunction · 0.85
__OSUnmaskInterruptsFunction · 0.85

Tested by

no test coverage detected