Changeset 18b6a88 in mainline for kernel/arch/arm32/include


Ignore:
Timestamp:
2018-04-15T09:35:04Z (8 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c1f44ca
Parents:
8ebe212
Message:

More ccheck fixes, sometimes with manual intervention.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/arm32/include/arch/cycle.h

    r8ebe212 r18b6a88  
    5252        if ((ID_PFR1_read() & ID_PFR1_GEN_TIMER_EXT_MASK) ==
    5353            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;
    5760        } else {
    5861                return (uint64_t)PMCCNTR_read() * 64;
Note: See TracChangeset for help on using the changeset viewer.