Changeset e762b43 in mainline for kernel/arch/arm32/src/cpu/cpu.c
- Timestamp:
- 2009-03-03T16:12:43Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 02fd705
- Parents:
- f24d300
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/arm32/src/cpu/cpu.c
rf24d300 re762b43 37 37 #include <cpu.h> 38 38 #include <arch.h> 39 #include <print.h> 39 #include <print.h> 40 40 41 41 /** Number of indexes left out in the #imp_data array */ … … 83 83 uint32_t ident; 84 84 asm volatile ( 85 "mrc p15, 0, % 0, c0, c0, 0\n"86 : "=r" (ident)85 "mrc p15, 0, %[ident], c0, c0, 0\n" 86 : [ident] "=r" (ident) 87 87 ); 88 88 89 89 cpu->imp_num = ident >> 24; 90 90 cpu->variant_num = (ident << 8) >> 28;
Note:
See TracChangeset
for help on using the changeset viewer.