zephyr/arch
Chuck Jordan ff303948d5 arc: Support FIRQ handling when CONFIG_RGF_NUM_BANKS==1
For the EM Starterkit, one SOC I will soon be adding is EM7D.
This SOC has FIRQ, but only has one register bank.
Thus the interrupt handling for FIRQ needs to be different
when CONFIG_RGF_NUM_BANKS==1. The handler must instead push
registers onto the stack in the same stack frame layout that RIRQ uses.
This allows for context switch to be easily done since its compatible.
The common interrupt entry point _isr_enter must save r0 before using
it, because in the FIRQ 1-bank case, it would be destroyed otherwise.
So a global variable named saved_r0 has been added for this reason.
The stack cannot be used to save r0, because it first has to determine
whether its FIRQ or RIRQ here. This change has been tested on the
EM Starterkit with EM7D SOC changes -- coming soon. To make the review
easier, these 3 files are submitted first.

Also, exceptions will no longer use the _firq_stack.
This stack is not needed in the 1-bank case, but an exception stack
is needed. I've added a new stack called _exception_stack,
and made it be 512B, which should be enough for one exception.
See ZEP-966

Change-Id: I6f228b840da7c4db440dd1cfef4ae25336c87f0d
Signed-off-by: Chuck Jordan <cjordan@synopsys.com>
2016-10-18 20:26:29 +00:00
..
arc arc: Support FIRQ handling when CONFIG_RGF_NUM_BANKS==1 2016-10-18 20:26:29 +00:00
arm pinmux: k64f: remove unused Kconfig section 2016-10-18 20:14:52 +00:00
nios2 unified: Remove references to obsolete task_timeout 2016-09-23 19:53:20 +00:00
x86 quark d2000: remove bluetooth configuration from SoC 2016-10-17 09:51:39 +00:00
Kconfig arm: move atomic operations selection to the Cortex-M Kconfig 2016-10-11 20:47:49 +00:00
Makefile arch/Makefile: simplify 2016-04-27 21:40:19 +00:00