source:
trunk/Softwares/Min.or32/src/asm/cpu_info.s
@
44
Last change on this file since 44 was 2, checked in by , 18 years ago | |
---|---|
File size: 284 bytes |
Rev | Line | |
---|---|---|
[2] | 1 | /* |
2 | * Manipulation of processor information | |
3 | */ | |
4 | ||
5 | .file "cpu_info.s" | |
6 | .section .text | |
7 | .align 4 | |
8 | ||
9 | .global _get_cpu_id | |
10 | _get_cpu_id : | |
11 | l.jr r9 | |
12 | l.mfspr r11,r0,0xF800 /* R11 <- SPR[31][0] */ | |
13 | ||
14 | .global _set_cpu_id | |
15 | _set_cpu_id : | |
16 | l.jr r9 | |
17 | l.mtspr r0 ,r3,0xF800 /* SPR[31][0] <- r3 */ | |
18 |
Note: See TracBrowser
for help on using the repository browser.