Ignore:
File:
1 edited

Legend:

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

    r7a0359b rda1bafb  
    4040#include <arch/cpu.h>
    4141#include <arch/mm/asid.h>
    42 #include <trace.h>
    43 
    44 NO_TRACE static inline uint32_t msr_read(void)
     42
     43static inline uint32_t msr_read(void)
    4544{
    4645        uint32_t msr;
     
    5453}
    5554
    56 NO_TRACE static inline void msr_write(uint32_t msr)
     55static inline void msr_write(uint32_t msr)
    5756{
    5857        asm volatile (
     
    6261}
    6362
    64 NO_TRACE static inline void sr_set(uint32_t flags, asid_t asid, uint32_t sr)
     63static inline void sr_set(uint32_t flags, asid_t asid, uint32_t sr)
    6564{
    6665        asm volatile (
     
    7170}
    7271
    73 NO_TRACE static inline uint32_t sr_get(uint32_t vaddr)
     72static inline uint32_t sr_get(uint32_t vaddr)
    7473{
    7574        uint32_t vsid;
     
    8483}
    8584
    86 NO_TRACE static inline uint32_t sdr1_get(void)
     85static inline uint32_t sdr1_get(void)
    8786{
    8887        uint32_t sdr1;
     
    104103 *
    105104 */
    106 NO_TRACE static inline ipl_t interrupts_enable(void)
     105static inline ipl_t interrupts_enable(void)
    107106{
    108107        ipl_t ipl = msr_read();
     
    119118 *
    120119 */
    121 NO_TRACE static inline ipl_t interrupts_disable(void)
     120static inline ipl_t interrupts_disable(void)
    122121{
    123122        ipl_t ipl = msr_read();
     
    133132 *
    134133 */
    135 NO_TRACE static inline void interrupts_restore(ipl_t ipl)
     134static inline void interrupts_restore(ipl_t ipl)
    136135{
    137136        msr_write((msr_read() & (~MSR_EE)) | (ipl & MSR_EE));
     
    145144 *
    146145 */
    147 NO_TRACE static inline ipl_t interrupts_read(void)
     146static inline ipl_t interrupts_read(void)
    148147{
    149148        return msr_read();
     
    155154 *
    156155 */
    157 NO_TRACE static inline bool interrupts_disabled(void)
     156static inline bool interrupts_disabled(void)
    158157{
    159158        return ((msr_read() & MSR_EE) == 0);
     
    167166 *
    168167 */
    169 NO_TRACE static inline uintptr_t get_stack_base(void)
     168static inline uintptr_t get_stack_base(void)
    170169{
    171170        uintptr_t base;
     
    180179}
    181180
    182 NO_TRACE static inline void cpu_sleep(void)
    183 {
    184 }
    185 
    186 NO_TRACE static inline void pio_write_8(ioport8_t *port, uint8_t v)
    187 {
    188         *port = v;
    189 }
    190 
    191 NO_TRACE static inline void pio_write_16(ioport16_t *port, uint16_t v)
    192 {
    193         *port = v;
    194 }
    195 
    196 NO_TRACE static inline void pio_write_32(ioport32_t *port, uint32_t v)
    197 {
    198         *port = v;
    199 }
    200 
    201 NO_TRACE static inline uint8_t pio_read_8(ioport8_t *port)
    202 {
    203         return *port;
    204 }
    205 
    206 NO_TRACE static inline uint16_t pio_read_16(ioport16_t *port)
    207 {
    208         return *port;
    209 }
    210 
    211 NO_TRACE static inline uint32_t pio_read_32(ioport32_t *port)
    212 {
    213         return *port;
     181static inline void cpu_sleep(void)
     182{
    214183}
    215184
     
    218187extern void userspace_asm(uintptr_t uspace_uarg, uintptr_t stack, uintptr_t entry);
    219188
     189static inline void pio_write_8(ioport8_t *port, uint8_t v)
     190{
     191        *port = v;
     192}
     193
     194static inline void pio_write_16(ioport16_t *port, uint16_t v)
     195{
     196        *port = v;
     197}
     198
     199static inline void pio_write_32(ioport32_t *port, uint32_t v)
     200{
     201        *port = v;
     202}
     203
     204static inline uint8_t pio_read_8(ioport8_t *port)
     205{
     206        return *port;
     207}
     208
     209static inline uint16_t pio_read_16(ioport16_t *port)
     210{
     211        return *port;
     212}
     213
     214static inline uint32_t pio_read_32(ioport32_t *port)
     215{
     216        return *port;
     217}
     218
    220219#endif
    221220
Note: See TracChangeset for help on using the changeset viewer.