Changeset 18b6a88 in mainline for kernel/arch/arm32/include
- Timestamp:
- 2018-04-15T09:35:04Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c1f44ca
- Parents:
- 8ebe212
- File:
-
- 1 edited
-
kernel/arch/arm32/include/arch/cycle.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/arm32/include/arch/cycle.h
r8ebe212 r18b6a88 52 52 if ((ID_PFR1_read() & ID_PFR1_GEN_TIMER_EXT_MASK) == 53 53 ID_PFR1_GEN_TIMER_EXT) { 54 uint32_t low = 0, high = 0; 55 asm volatile( "MRRC p15, 0, %[low], %[high], c14": [low]"=r"(low), [high]"=r"(high)); 56 return ((uint64_t)high << 32) | low; 54 uint32_t low = 0, high = 0; 55 asm volatile ( 56 "MRRC p15, 0, %[low], %[high], c14" 57 : [low] "=r" (low), [high] "=r" (high) 58 ); 59 return ((uint64_t)high << 32) | low; 57 60 } else { 58 61 return (uint64_t)PMCCNTR_read() * 64;
Note:
See TracChangeset
for help on using the changeset viewer.
