Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/src/trap/interrupt.c

    r214ec25c rd99c1d2  
    5151/** Register Interrupt Level Handler.
    5252 *
    53  * @param n       Interrupt Level (1 - 15).
    54  * @param name    Short descriptive string.
    55  * @param handler Handler.
    56  *
     53 * @param n Interrupt Level (1 - 15).
     54 * @param name Short descriptive string.
     55 * @param f Handler.
    5756 */
    58 void interrupt_register(unsigned int n, const char *name, iroutine_t handler)
     57void interrupt_register(int n, const char *name, iroutine f)
    5958{
    60         ASSERT(n >= IVT_FIRST);
    61         ASSERT(n <= IVT_ITEMS);
     59        ASSERT(n >= IVT_FIRST && n <= IVT_ITEMS);
    6260       
    63         exc_register(n - IVT_FIRST, name, true, handler);
     61        exc_register(n - 1, name, f);
    6462}
    65 
    6663/** @}
    6764 */
Note: See TracChangeset for help on using the changeset viewer.