Changeset 520 for trunk/hal


Ignore:
Timestamp:
Aug 30, 2018, 6:23:59 PM (3 years ago)
Author:
viala@…
Message:

[soclib_hba] Use assert instead of printk + Hal_core_sleep for panic.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/tsar_mips32/drivers/soclib_hba.c

    r440 r520  
    188188        else   // no slot available in SOCLIB_HBA
    189189        {
    190             if( cmd_type == IOC_SYNC_READ )     // fatal if synchronous access
    191             {
    192                 printk("\n[PANIC] in %s : no slot available for a SYNC_READ\n", __FUNCTION__ );
    193                 hal_core_sleep();
    194             }
    195             else                                // retry if asynchronous access.
    196             {
    197                 sched_yield( "blocked on ISR" );
    198             }
     190            // fatal if synchronous access
     191            assert( cmd_type == IOC_SYNC_READ, "no slot available for a IOC_SYNC_READ\n" );
     192            sched_yield( "blocked on ISR" );
     193        }
    199194        }
    200195    }  // end while to get a slot
Note: See TracChangeset for help on using the changeset viewer.