Everything

17.5.10 Interrupt handler information

The interrupt handler information defines Exception code: inhno, Attribute: inhatr, Start address: inthdr for an interrupt handler information.
The number of items that can be defined as interrupt handler information is limited to one for each exception code.
The following shows the interrupt handler information format.
 DEF_INH (inhno, { inhatr, inthdr });

The items constituting the interrupt handler information are as follows.
1 ) Exception code: inhno
Specifies the exception code for an EI level maskable interrupt for which an interrupt handler is to be registered.
The value that can be specified for inhno is an interrupt source name specified in the device file or a value from 0x1000 to the maximum exception code specified in the Basic information.
Note When an interrupt source name is specified for inhno, -cpu_name must be specified for the CF850V4 activation option.
2 ) Attribute: inhatr
Specifies the language used to describe an interrupt handler.
The keyword that can be specified for inhatr is TA_HLNG or TA_ASM.
TA_HLNG: Start an interrupt handler through a C language interface.
TA_ASM: Start an interrupt handler through an assembly language interface.
3 ) Start address: inthdr
Specifies the start address for an interrupt handler.
A value from 0x0 to 0xfffffffe (aligned to a 2-byte boundary), or a symbol name, can be specified for inthdr.
Note When an interrupt handler is coded as follows, the symbol name specified for inthdr should be func_int.
 #include        <kernel.h>
 #include        <kernel_id.h>
 
 void
 func_int ( void )
 {
         ............
         ............
 
         return;
 }