Rev 1730 | Rev 1736 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1730 | Rev 1733 | ||
---|---|---|---|
Line 375... | Line 375... | ||
375 | } |
375 | } |
376 | 376 | ||
377 | 377 | ||
378 | void tlb_print(void) |
378 | void tlb_print(void) |
379 | { |
379 | { |
380 | // TODO |
380 | __u32 sr; |
- | 381 | ||
- | 382 | for (sr = 0; sr < 16; sr++) { |
|
- | 383 | __u32 vsid; |
|
- | 384 | asm volatile ( |
|
- | 385 | "mfsrin %0, %1\n" |
|
- | 386 | : "=r" (vsid) |
|
- | 387 | : "r" (sr << 28) |
|
- | 388 | ); |
|
- | 389 | printf("vsid[%#x]=%#x\n", sr << 28, vsid); |
|
- | 390 | } |
|
381 | } |
391 | } |
382 | 392 | ||
383 | /** @} |
393 | /** @} |
384 | */ |
394 | */ |