/*
 * 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,22			/* R11 <- SPR[0][22] */
        
	.global _set_thread_id
_set_thread_id :
	l.jr	r9
	l.mtspr r0 ,r3,22			/* SPR[0][22] <- r3  */

	.global _get_thread_priority
_get_thread_priority :
	l.jr	r9
	l.mfspr r11,r0,23			/* R11 <- SPR[0][23] */

	.global _set_thread_priority
_set_thread_priority :
	l.jr	r9
	l.mtspr r0 ,r3,23			/* SPR[0][23] <- r3  */
	