Rev 914 | Rev 949 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 914 | Rev 933 | ||
---|---|---|---|
Line 30... | Line 30... | ||
30 | #include "spr.h" |
30 | #include "spr.h" |
31 | 31 | ||
32 | .data |
32 | .data |
33 | 33 | ||
34 | flush_buffer: |
34 | flush_buffer: |
35 | .space 4 |
35 | .space (L1_CACHE_LINES * L1_CACHE_BYTES) |
36 | 36 | ||
37 | .text |
37 | .text |
38 | 38 | ||
39 | .global memsetb |
39 | .global memsetb |
40 | .global memcpy |
40 | .global memcpy |
Line 182... | Line 182... | ||
182 | sync |
182 | sync |
183 | isync |
183 | isync |
184 | blr |
184 | blr |
185 | 185 | ||
186 | jump_to_kernel: |
186 | jump_to_kernel: |
187 | mfmsr r4 |
- | |
188 | andis. r4, r4, (~MSR_DR | MSR_IR) >> 16 |
- | |
189 | mtspr SPRN_SRR0, r3 |
187 | mtspr SPRN_SRR0, r3 |
- | 188 | mfmsr r3 |
|
- | 189 | andi. r3, r3, ~(MSR_IR | MSR_DR)@l |
|
190 | mtspr SPRN_SRR1, r4 |
190 | mtspr SPRN_SRR1, r3 |
191 | bl flush_instruction_cache |
191 | bl flush_instruction_cache |
192 | rfi |
192 | rfi |