Rev 1738 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1738 | Rev 1739 | ||
---|---|---|---|
Line 313... | Line 313... | ||
313 | srw r30, r31, r29 # r30 = mask >> 1 |
313 | srw r30, r31, r29 # r30 = mask >> 1 |
314 | or r31, r31, r30 # mask = mask | r30 |
314 | or r31, r31, r30 # mask = mask | r30 |
315 | 315 | ||
316 | bdnz bat_mask |
316 | bdnz bat_mask |
317 | 317 | ||
- | 318 | DEBUG_bat_mask |
|
- | 319 | ||
318 | andi. r31, r31, 0x07ff # mask = mask & 0x07ff (BAT can map up to 256 MB) |
320 | andi. r31, r31, 0x07ff # mask = mask & 0x07ff (BAT can map up to 256 MB) |
319 | 321 | ||
320 | li r29, 2 |
322 | li r29, 2 |
321 | slw r31, r31, r29 # mask = mask << 2 |
323 | slw r31, r31, r29 # mask = mask << 2 |
322 | ori r31, r31, 0x0002 # mask = mask | 0x0002 (priviledged access only) |
324 | ori r31, r31, 0x0002 # mask = mask | 0x0002 (priviledged access only) |