Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/arm32/src/interrupt.c

    r0e796cc r646b996  
    3636#include <arch/asm.h>
    3737#include <arch/regutils.h>
    38 #include <arch/machine_func.h>
    3938#include <ddi/irq.h>
    4039#include <ddi/device.h>
    4140#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
    4252
    4353/** Disable interrupts.
     
    8797}
    8898
    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 
    9999/** Initialize basic tables for exception dispatching
    100100 * and starts the timer.
     
    102102void interrupt_init(void)
    103103{
    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);
    109105        machine_timer_irq_start();
    110106}
Note: See TracChangeset for help on using the changeset viewer.