provide an early exception vector table to catch exceptions during startup, before the final table has been set up (in exceptions.S)

This commit is contained in:
Markus Fröschle
2013-08-02 09:35:57 +00:00
parent 79bc80daa1
commit feb6a27869
5 changed files with 63 additions and 3 deletions

View File

@@ -11,6 +11,7 @@ SECTIONS
{
objs/startcf.o(.text) /* this one is the entry point so it must be the first */
objs/sysinit.o(.text)
objs/fault_vectors.o(.text)
objs/init_fpga.o(.text)
objs/wait.o(.text)
@@ -70,7 +71,8 @@ SECTIONS
/* SDRAM Initialization @ 0000_0000 - 1FFF_FFFF 512Mbytes */
___SDRAM = 0x00000000;
___SDRAM_SIZE = 0x20000000;
_SDRAM_VECTOR_TABLE = ___SDRAM;
/* ST-RAM */
__STRAM = ___SDRAM;
__STRAM_END = __TOS;