source: trunk/Softwares/Common/src/asm/thread_info.s @ 101

Last change on this file since 101 was 101, checked in by rosiere, 15 years ago

1) Add soc test
2) fix bug (Pc management, Decod and execute, Update prediction ...)

  • Property svn:keywords set to Id
File size: 518 bytes
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,22                       /* R11 <- SPR[0][22] */
13       
14        .global _set_thread_id
15_set_thread_id :
16        l.jr    r9
17        l.mtspr r0 ,r3,22                       /* SPR[0][22] <- r3  */
18
19        .global _get_thread_priority
20_get_thread_priority :
21        l.jr    r9
22        l.mfspr r11,r0,23                       /* R11 <- SPR[0][23] */
23
24        .global _set_thread_priority
25_set_thread_priority :
26        l.jr    r9
27        l.mtspr r0 ,r3,23                       /* SPR[0][23] <- r3  */
28       
Note: See TracBrowser for help on using the repository browser.