Ignore:
File:
1 edited

Legend:

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

    r7a0359b rda1bafb  
    3838#include <typedefs.h>
    3939#include <config.h>
    40 #include <trace.h>
    4140
    42 NO_TRACE static inline void cpu_sleep(void)
     41static inline void cpu_sleep(void)
    4342{
    44         /*
    45          * Unfortunatelly most of the simulators do not support
    46          *
    47          * asm volatile (
    48          *     "wait"
    49          * );
    50          *
    51          */
     43        /* Most of the simulators do not support */
     44/*      asm volatile ("wait"); */
    5245}
    5346
     
    5952 *
    6053 */
    61 NO_TRACE static inline uintptr_t get_stack_base(void)
     54static inline uintptr_t get_stack_base(void)
    6255{
    6356        uintptr_t base;
     
    7265}
    7366
    74 NO_TRACE static inline void pio_write_8(ioport8_t *port, uint8_t v)
     67extern void cpu_halt(void) __attribute__((noreturn));
     68extern void asm_delay_loop(uint32_t t);
     69extern void userspace_asm(uintptr_t ustack, uintptr_t uspace_uarg,
     70    uintptr_t entry);
     71
     72extern ipl_t interrupts_disable(void);
     73extern ipl_t interrupts_enable(void);
     74extern void interrupts_restore(ipl_t ipl);
     75extern ipl_t interrupts_read(void);
     76extern bool interrupts_disabled(void);
     77
     78static inline void pio_write_8(ioport8_t *port, uint8_t v)
    7579{
    7680        *port = v;
    7781}
    7882
    79 NO_TRACE static inline void pio_write_16(ioport16_t *port, uint16_t v)
     83static inline void pio_write_16(ioport16_t *port, uint16_t v)
    8084{
    8185        *port = v;
    8286}
    8387
    84 NO_TRACE static inline void pio_write_32(ioport32_t *port, uint32_t v)
     88static inline void pio_write_32(ioport32_t *port, uint32_t v)
    8589{
    8690        *port = v;
    8791}
    8892
    89 NO_TRACE static inline uint8_t pio_read_8(ioport8_t *port)
     93static inline uint8_t pio_read_8(ioport8_t *port)
    9094{
    9195        return *port;
    9296}
    9397
    94 NO_TRACE static inline uint16_t pio_read_16(ioport16_t *port)
     98static inline uint16_t pio_read_16(ioport16_t *port)
    9599{
    96100        return *port;
    97101}
    98102
    99 NO_TRACE static inline uint32_t pio_read_32(ioport32_t *port)
     103static inline uint32_t pio_read_32(ioport32_t *port)
    100104{
    101105        return *port;
    102106}
    103 
    104 extern void cpu_halt(void) __attribute__((noreturn));
    105 extern void asm_delay_loop(uint32_t);
    106 extern void userspace_asm(uintptr_t, uintptr_t, uintptr_t);
    107 
    108 extern ipl_t interrupts_disable(void);
    109 extern ipl_t interrupts_enable(void);
    110 extern void interrupts_restore(ipl_t);
    111 extern ipl_t interrupts_read(void);
    112 extern bool interrupts_disabled(void);
    113107
    114108#endif
Note: See TracChangeset for help on using the changeset viewer.