zephyr/arch
Chuck Jordan 4ad41d8d7f arc: early init should invalidate d-cache and set vector table
Some ARC targets can have a data-cache. Although there is no special
instruction to clear exceptions during early init, it is necessary to
invalidate the d-cache BEFORE any data is fetched. The ARC on arduino 101
doesn't have d-cache, and will thus skip this d-cache invalidate.

Also, it is important to set the vector table base register to point to
the interrupt vector table EARLY, so that if an exception is encountered,
the correct vector table is found. Set this base only if it is found to be
different from the one compiled in to the code.
These initialization steps assure that proper exception handling
is in place during early init.

Change-Id: Ie8b5928e5813e104680a6d6510c85d32dc8ed8f3
Signed-off-by: Chuck Jordan <cjordan@synopsys.com>
2016-05-11 11:10:52 +00:00
..
arc arc: early init should invalidate d-cache and set vector table 2016-05-11 11:10:52 +00:00
arm build: rename non-generated linker scripts to .ld extension 2016-05-09 18:09:26 +00:00
nios2 nios2: update _new_thread prototype to latest changes 2016-05-09 18:09:28 +00:00
x86 build: rename non-generated linker scripts to .ld extension 2016-05-09 18:09:26 +00:00
Kconfig build: rename non-generated linker scripts to .ld extension 2016-05-09 18:09:26 +00:00
Makefile arch/Makefile: simplify 2016-04-27 21:40:19 +00:00