Ignore:
Timestamp:
Jun 10, 2014, 1:28:14 PM (10 years ago)
Author:
alain
Message:

Various small modifs to comply with the genmap tool.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_kernel/irq_handler.c

    r310 r322  
    1919#include <bdv_driver.h>
    2020#include <dma_driver.h>
     21#include <spi_driver.h>
    2122#include <mapping_info.h>
    2223#include <utils.h>
    2324
    24 #if !defined( USE_XICU )
    25 # error: You must define USE_XICU in the hard_config.h file
     25#if !defined( USE_XCU )
     26# error: You must define USE_XCU in the hard_config.h file
    2627#endif
    2728
     
    6061    unsigned int icu_out_index = lpid * IRQ_PER_PROCESSOR;
    6162
    62 #if USE_XICU
     63#if USE_XCU
    6364    _xcu_get_index( cluster_xy, icu_out_index, &irq_id, &irq_type );
    6465#else
     
    118119        else if ( isr_type == ISR_TIMER  ) _timer_isr  ( irq_type, irq_id, channel );
    119120        else if ( isr_type == ISR_MMC    ) _mmc_isr    ( irq_type, irq_id, channel );
     121        else if ( isr_type == ISR_DMA    ) _dma_isr    ( irq_type, irq_id, channel );
     122        else if ( isr_type == ISR_SPI    ) _spi_isr    ( irq_type, irq_id, channel );
    120123        else
    121124        {
     
    146149    unsigned int lpid       = gpid % NB_PROCS_MAX;
    147150
    148     // We don't take TTY lock to avoid deadlock
    149     _puts("\n[GIET WARNING] IRQ handler called but no active IRQ on processor[");
    150     _putd( x );
    151     _puts(",");
    152     _putd( y );
    153     _puts(",");
    154     _putd( lpid );
    155     _puts("] at cycle ");
    156     _putd( _get_proctime() );
    157     _puts("\n  ");
     151    _printf("\n[GIET WARNING] IRQ handler called but no active IRQ "
     152            "on processor[%d,%d,%d] at cycle %d\n",
     153            x, y, lpid, _get_proctime() );
    158154}
    159155
Note: See TracChangeset for help on using the changeset viewer.