/* * Manipulation of thread information */ .file "thread_info.s" .section .text .align 4 .global _get_thread_id _get_thread_id : l.jr r9 l.mfspr r11,r0,0xF801 /* R11 <- SPR[31][1] */ .global _set_thread_id _set_thread_id : l.jr r9 l.mtspr r0 ,r3,0xF801 /* SPR[31][1] <- r3 */ .global _get_thread_priority _get_thread_priority : l.jr r9 l.mfspr r11,r0,0xF802 /* R11 <- SPR[31][2] */ .global _set_thread_priority _set_thread_priority : l.jr r9 l.mtspr r0 ,r3,0xF802 /* SPR[31][2] <- r3 */