Freescale Semiconductor Inc.
    Regional Technical Application Center

 

E:/PROJECTS/IOP/ADC Average/Src/ADC_Filter/ADC_Filter_Drv/src/Exceptions.c File Reference

#include "Exceptions.h"

Include dependency graph for Exceptions.c:


Functions

 __declspec (section".__exception_handlers_p0")
__asm void EXCEP_InitExceptionHandlers (void)

Function Documentation

__declspec ( section".__exception_handlers_p0"   ) 

FILE: Exceptions.c

DESCRIPTION: Setup of IVPR to point to the EXCEPTION_HANDLERS memory area defined in the linker command file. Default setup of the IVORxx registers.

__asm void EXCEP_InitExceptionHandlers ( void   ) 

This function will setup the PowerPC Zen core IVPR and IVORxx registers. IVPR will be set to the EXCEPTION_HANDLERS memory area defined in the linker command file (.lcf of the current build target) IVORxx will be set by default to the exception handler function: __DefaultExceptionHandler__.

If an Exception is used in the application code, the exception handler routine should be defined like the EXCEP_DefaultExceptionHandler function (i.e. interrupt function, forced active and placed in the ".__exception_handlers_z1" code section). The corresponding entries in the ivor_branch_table should then be set to branch to this address.