User`s manual

SCIOPTA - Real-Time Kernel
User’s Manual Manual Version 4.1 12-3
SCIOPTA - Real-Time Kernel
12 Additional Functions
12.7 Exception Handling
12.7.1 Introduction
Exception handling for SCIOPTA is mainly done inside the kernel. Depending on the CPU family there might be
some external functions needed. They are usually supplied by SCIOPTA and included in the board support package
of the delivery.
12.7.2 SCIOPTA ARM Exception Handling
12.7.2.1 ARM Architecture Exception Handler Files
cortexm3_exception.<ext>Exception handler for Cortex-M3.
cortexm3_vector.<ext> Vector table for Cortex-M3.
exception.<ext> Global exception handler for all ARM except Cortex-M3.
File extensions <ext>: S GNU GCC
File location: <install_folder>\sciopta\<version>\bsp\arm\src\gnu\
s79 IAR Version 4.x
File location: <install_folder>\sciopta\<version>\bsp\arm\src\iar\
s IAR Version 5.x
File location: <install_folder>\sciopta\<version>\bsp\arm\src\iar\
s ARM RealView
File location: <install_folder>\sciopta\<version>\bsp\arm\src\arm\
Usually there is no need to modify the exception handlers.
12.7.2.2 ARM CPU Family Interrupt Handler Files
irq_handler.<ext> Interrupt handler.
irq_handler_mmu.<ext> Interrupt handler including MMU support only for XScale
<file_name>_irq.<ext> Interrupt handler for specific CPUs (LPC2000).
File extensions <ext>: S GNU GCC
File location: <install_folder>\sciopta\<version>\bsp\arm\<cpu>\src\gnu\
s79 IAR Version 4.x
File location: <install_folder>\sciopta\<version>\bsp\arm\<cpu>\src\iar\
s IAR Version 5.x
File location: <install_folder>\sciopta\<version>\bsp\arm\<cpu>\src\iar\
s ARM RealView
File location: <install_folder>\sciopta\<version>\bsp\arm\<cpu>\src\arm\
Usually there is no need to modify the interrupt handlers. The interrupt handler safes the cpu context and calls the
kernel with the interrupt vector number.
The interrupt controller is initialized in the resethook (see also chapter 11.2 “Reset Hook” on page 11-2).