Changeset 1433ecda in mainline for kernel/arch/ppc32/include/arch/cpu.h
- Timestamp:
- 2018-04-04T15:42:37Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2c4e1cc
- Parents:
- 47b2d7e3
- File:
-
- 1 edited
-
kernel/arch/ppc32/include/arch/cpu.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ppc32/include/arch/cpu.h
r47b2d7e3 r1433ecda 42 42 uint16_t version; 43 43 uint16_t revision; 44 } __attribute__ ((packed)) cpu_arch_t;44 } __attribute__((packed)) cpu_arch_t; 45 45 46 46 NO_TRACE static inline void cpu_version(cpu_arch_t *info) 47 47 { 48 48 asm volatile ( 49 "mfpvr %[cpu_info]\n"50 : [cpu_info] "=r" (*info)49 "mfpvr %[cpu_info]\n" 50 : [cpu_info] "=r" (*info) 51 51 ); 52 52 }
Note:
See TracChangeset
for help on using the changeset viewer.
