Rev 860 | Rev 1702 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 860 | Rev 1267 | ||
|---|---|---|---|
| Line 36... | Line 36... | ||
| 36 | __u16 revision; |
36 | __u16 revision; |
| 37 | } __attribute__ ((packed)); |
37 | } __attribute__ ((packed)); |
| 38 | 38 | ||
| 39 | static inline void cpu_version(struct cpu_info *info) |
39 | static inline void cpu_version(struct cpu_info *info) |
| 40 | { |
40 | { |
| 41 | __asm__ volatile ( |
41 | asm volatile ( |
| 42 | "mfspr %0, 287\n" |
42 | "mfpvr %0\n" |
| 43 | : "=r" (*info) |
43 | : "=r" (*info) |
| 44 | ); |
44 | ); |
| 45 | } |
45 | } |
| 46 | 46 | ||
| 47 | #endif |
47 | #endif |