Changeset ffe276f in mainline for kernel/arch/ppc32/include/asm.h


Ignore:
Timestamp:
2010-05-22T22:56:00Z (14 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c555155
Parents:
86a3f89b
Message:

restructure constants
change the return type of pic_get_pending()
coding style changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ppc32/include/asm.h

    r86a3f89b rffe276f  
    6060}
    6161
     62static inline uint32_t msr_read(void)
     63{
     64        uint32_t msr;
     65       
     66        asm volatile (
     67                "mfmsr %[msr]\n"
     68                : [msr] "=r" (msr)
     69        );
     70       
     71        return msr;
     72}
     73
     74static inline void msr_write(uint32_t msr)
     75{
     76        asm volatile (
     77                "mtmsr %[msr]\n"
     78                :: [msr] "r" (msr)
     79        );
     80}
     81
    6282/** Enable interrupts.
    6383 *
Note: See TracChangeset for help on using the changeset viewer.