Changeset c555155 in mainline


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

remove duplicate msr_read() and msr_write()

File:
1 edited

Legend:

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

    rffe276f rc555155  
    3939#include <config.h>
    4040#include <arch/cpu.h>
    41 
    42 static inline uint32_t msr_read(void)
    43 {
    44         uint32_t msr;
    45        
    46         asm volatile (
    47                 "mfmsr %[msr]\n"
    48                 : [msr] "=r" (msr)
    49         );
    50        
    51         return msr;
    52 }
    53 
    54 static inline void msr_write(uint32_t msr)
    55 {
    56         asm volatile (
    57                 "mtmsr %[msr]\n"
    58                 :: [msr] "r" (msr)
    59         );
    60 }
    6141
    6242static inline uint32_t msr_read(void)
Note: See TracChangeset for help on using the changeset viewer.