| Line | |
|---|
| 1 | /* |
|---|
| 2 | * Manipulation of thread information |
|---|
| 3 | */ |
|---|
| 4 | |
|---|
| 5 | .file "thread_info.s" |
|---|
| 6 | .section .text |
|---|
| 7 | .align 4 |
|---|
| 8 | |
|---|
| 9 | .global _get_thread_id |
|---|
| 10 | _get_thread_id : |
|---|
| 11 | l.jr r9 |
|---|
| 12 | l.mfspr r11,r0,0xF801 /* R11 <- SPR[31][1] */ |
|---|
| 13 | |
|---|
| 14 | .global _set_thread_id |
|---|
| 15 | _set_thread_id : |
|---|
| 16 | l.jr r9 |
|---|
| 17 | l.mtspr r0 ,r3,0xF801 /* SPR[31][1] <- r3 */ |
|---|
| 18 | |
|---|
| 19 | .global _get_thread_priority |
|---|
| 20 | _get_thread_priority : |
|---|
| 21 | l.jr r9 |
|---|
| 22 | l.mfspr r11,r0,0xF802 /* R11 <- SPR[31][2] */ |
|---|
| 23 | |
|---|
| 24 | .global _set_thread_priority |
|---|
| 25 | _set_thread_priority : |
|---|
| 26 | l.jr r9 |
|---|
| 27 | l.mtspr r0 ,r3,0xF802 /* SPR[31][2] <- r3 */ |
|---|
| 28 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.