Changeset e762b43 in mainline for kernel/arch/arm32/src/cpu/cpu.c


Ignore:
Timestamp:
2009-03-03T16:12:43Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
02fd705
Parents:
f24d300
Message:

better inline assembler readability using the new symbolic syntax

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/arm32/src/cpu/cpu.c

    rf24d300 re762b43  
    3737#include <cpu.h>
    3838#include <arch.h>
    39 #include <print.h>     
     39#include <print.h>
    4040
    4141/** Number of indexes left out in the #imp_data array */
     
    8383        uint32_t ident;
    8484        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)
    8787        );
    88 
     88       
    8989        cpu->imp_num = ident >> 24;
    9090        cpu->variant_num = (ident << 8) >> 28;
Note: See TracChangeset for help on using the changeset viewer.