Ignore:
File:
1 edited

Legend:

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

    r2ee907e rbcdc185  
    308308}
    309309
     310/** Check interrupts state.
     311 *
     312 * @return True if interrupts are disabled.
     313 *
     314 */
     315static inline bool interrupts_disabled(void)
     316{
     317        pstate_reg_t pstate;
     318
     319        pstate.value = pstate_read();
     320        return !pstate.ie;
     321}
     322
    310323/** Return base address of current stack.
    311324 *
     
    433446extern void asm_delay_loop(const uint32_t usec);
    434447
    435 extern uint64_t read_from_ag_g6(void);
    436448extern uint64_t read_from_ag_g7(void);
    437449extern void write_to_ag_g6(uint64_t val);
Note: See TracChangeset for help on using the changeset viewer.