Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset f34c09e in mainline


Ignore:
Timestamp:
2010-05-20T20:59:05Z (11 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
Children:
b7aa7c5
Parents:
769a128
Message:

Add arm32 interrupts_disabled().

Location:
kernel/arch/arm32
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/arm32/include/interrupt.h

    r769a128 rf34c09e  
    5252extern void interrupts_restore(ipl_t ipl);
    5353extern ipl_t interrupts_read(void);
     54extern bool interrupts_disabled(void);
    5455
    5556
  • kernel/arch/arm32/src/interrupt.c

    r769a128 rf34c09e  
    9797}
    9898
     99/** Check interrupts state.
     100 *
     101 * @return True if interrupts are disabled.
     102 *
     103 */
     104bool interrupts_disabled(void)
     105{
     106        return current_status_reg_read() & STATUS_REG_IRQ_DISABLED_BIT;
     107}
     108
    99109/** Initialize basic tables for exception dispatching
    100110 * and starts the timer.
Note: See TracChangeset for help on using the changeset viewer.