Changeset 29b2b3e in rtems


Ignore:
Timestamp:
Apr 5, 2012, 3:23:20 PM (7 years ago)
Author:
Daniel Hellstrom <daniel@…>
Children:
438b6eca
Parents:
c74bd51
git-author:
Daniel Hellstrom <daniel@…> (04/05/12 15:23:20)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/10/12 06:45:03)
Message:

LEON3: halt boot if IRQ controller not found

Signed-off-by: Daniel Hellstrom <daniel@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/leon3/amba/amba.c

    rc74bd51 r29b2b3e  
    4545  amba_scan(&amba_conf,LEON3_IO_AREA,NULL);
    4646
    47   /* Find LEON3 Interrupt controler */
     47  /* Find LEON3 Interrupt controller */
    4848  i = amba_find_apbslv(&amba_conf,VENDOR_GAISLER,GAISLER_IRQMP,&dev);
    49   if ( i > 0 ){
    50     /* Found APB IRQ_MP Interrupt Controller */
    51     LEON3_IrqCtrl_Regs = (volatile LEON3_IrqCtrl_Regs_Map *) dev.start;
     49  if (i <= 0){
     50    /* PANIC IRQ controller not found!
     51     *
     52     *  What else can we do but stop ...
     53     */
     54    asm volatile( "mov 1, %g1; ta 0x0" );
    5255  }
     56
     57  LEON3_IrqCtrl_Regs = (volatile LEON3_IrqCtrl_Regs_Map *) dev.start;
    5358
    5459  /* Init Extended IRQ controller if available */
Note: See TracChangeset for help on using the changeset viewer.