Changes in kernel/arch/arm32/src/interrupt.c [646b996:0e796cc] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/arm32/src/interrupt.c
r646b996 r0e796cc 36 36 #include <arch/asm.h> 37 37 #include <arch/regutils.h> 38 #include <arch/machine_func.h> 38 39 #include <ddi/irq.h> 39 40 #include <ddi/device.h> 40 41 #include <interrupt.h> 41 42 #ifdef MACHINE_testarm43 #include <arch/mach/testarm/testarm.h>44 #endif45 46 #ifdef MACHINE_integratorcp47 #include <arch/mach/integratorcp/integratorcp.h>48 #endif49 50 /** Initial size of a table holding interrupt handlers. */51 #define IRQ_COUNT 852 42 53 43 /** Disable interrupts. … … 97 87 } 98 88 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 irq_init(IRQ_COUNT, IRQ_COUNT); 104 size_t irq_count; 105 106 irq_count = machine_get_irq_count(); 107 irq_init(irq_count, irq_count); 108 105 109 machine_timer_irq_start(); 106 110 }
Note:
See TracChangeset
for help on using the changeset viewer.