Changes in kernel/arch/arm32/src/interrupt.c [0e796cc:646b996] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/arm32/src/interrupt.c
r0e796cc r646b996 36 36 #include <arch/asm.h> 37 37 #include <arch/regutils.h> 38 #include <arch/machine_func.h>39 38 #include <ddi/irq.h> 40 39 #include <ddi/device.h> 41 40 #include <interrupt.h> 41 42 #ifdef MACHINE_testarm 43 #include <arch/mach/testarm/testarm.h> 44 #endif 45 46 #ifdef MACHINE_integratorcp 47 #include <arch/mach/integratorcp/integratorcp.h> 48 #endif 49 50 /** Initial size of a table holding interrupt handlers. */ 51 #define IRQ_COUNT 8 42 52 43 53 /** Disable interrupts. … … 87 97 } 88 98 89 /** Check interrupts state.90 *91 * @return True if interrupts are disabled.92 *93 */94 bool interrupts_disabled(void)95 {96 return current_status_reg_read() & STATUS_REG_IRQ_DISABLED_BIT;97 }98 99 99 /** Initialize basic tables for exception dispatching 100 100 * and starts the timer. … … 102 102 void interrupt_init(void) 103 103 { 104 size_t irq_count; 105 106 irq_count = machine_get_irq_count(); 107 irq_init(irq_count, irq_count); 108 104 irq_init(IRQ_COUNT, IRQ_COUNT); 109 105 machine_timer_irq_start(); 110 106 }
Note:
See TracChangeset
for help on using the changeset viewer.