23.3.3.3 Base Exception Vector Address and Vector Spacing Symbols

This section of the processor definitions linker script defines values for the base exception vector address and vector spacing.

/**************************************************************

* For interrupt vector handling

**************************************************************/

_vector_spacing = 0x00000001;

_ebase_address = 0x9FC01000;

The first line defines a value of 1 for _vector_spacing. The available memory for exceptions only supports a vector spacing of 1. The second line defines the location of the base exception vector address (EBASE).

On some devices, the base exception vector address is located in the KSEG0 boot segment. On other devices, the size of the KSEG0 boot segment is not sufficient for the vector table, so the base exception vector address is located in the KSEG0 program segment. In general, devices with at least 12 KB in the KSEG0 boot segment use the boot flash for the exception vector table. Devices with less than 12 KB in the KSEG0 boot segment use the KSEG0 program segment for the exception vector table. Be sure to check the procdefs.ld include file for the default address for your target device.