Changeset bcdc185 in mainline


Ignore:
Timestamp:
2010-05-20T20:31:27Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fdb8c17
Parents:
42bbbe2
Message:

Add sparc64 interrupts_disabled().

File:
1 edited

Legend:

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

    r42bbbe2 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 *
Note: See TracChangeset for help on using the changeset viewer.