Rev 1157 | Rev 1216 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1157 | Rev 1214 | ||
---|---|---|---|
Line 122... | Line 122... | ||
122 | 122 | ||
123 | sync |
123 | sync |
124 | isync |
124 | isync |
125 | rfi |
125 | rfi |
126 | 126 | ||
127 | .section REALMODE |
127 | .section REALMODE, "ax" |
128 | .align PAGE_WIDTH |
128 | .align PAGE_WIDTH |
129 | .global real_mode |
129 | .global real_mode |
130 | 130 | ||
131 | real_mode: |
131 | real_mode: |
132 | 132 | ||
Line 166... | Line 166... | ||
166 | addi r5, r5, 4 |
166 | addi r5, r5, 4 |
167 | b page_copy |
167 | b page_copy |
168 | 168 | ||
169 | copy_end: |
169 | copy_end: |
170 | 170 | ||
171 | # invalidate segment registers |
171 | # initially fill segment registers |
172 | 172 | ||
173 | li r31, 16 |
173 | li r31, 16 |
174 | mtctr r31 |
174 | mtctr r31 |
175 | li r31, 0 |
175 | li r31, 0 |
176 | li r30, 0 |
176 | li r30, 0x2000 |
177 | 177 | ||
178 | seg_fill: |
178 | seg_fill: |
179 | 179 | ||
180 | mtsrin r30, r31 |
180 | mtsrin r30, r31 |
- | 181 | addi r30, r30, 0x111 |
|
181 | addis r31, r31, 0x1000 # move to next SR |
182 | addis r31, r31, 0x1000 # move to next SR |
182 | 183 | ||
183 | bdnz seg_fill |
184 | bdnz seg_fill |
184 | 185 | ||
185 | # invalidate block address translation registers |
186 | # invalidate block address translation registers |