zephyr/tests
Andrew Boie 17c0b372a2 x86: improve exception APIs
Previously, exception stubs had to be declared in assembly
language files. Now we have two new APIs to regsiter exception
handlers at C toplevel:

 _EXCEPTION_CONNECT_CODE(handler, vector)
 _EXCEPTION_CONNECT_NOCODE(handler, vector)

For x86 exceptions that do and do not push error codes onto
the stack respectively.

In addition, it's now no longer necessary to #define around
exception registration. We now use .gnu.linkonce magic such that
the first _EXCEPTION_CONNECT_*() that the linker finds is used
for the specified vector. Applications are free to install their
own exception handlers which will take precedence over default
handlers such as installed by arch/x86/core/fatal.c

Some Makefiles have been adjusted so that the default exception
handlers in arch/x86/core/fatal.c are linked last. The code has
been tested that the right order of precedence is taken for
exceptions overridden in the floating point, gdb debug, or
application code. The asm SYS_NANO_CPU_EXC_CONNECT API has been
removed; it was ill- conceived as it only worked for exceptions
that didn't push error codes. All the asm NANO_CPU_EXC_CONNECT_*
APIs are gone as well in favor of the new _EXCEPTION_CONNNECT_*()
APIs.

CONFIG_EXCEPTION_DEBUG no longer needs to be disabled for test
cases that define their own exception handlers.

Issue: ZEP-203
Change-Id: I782e0143fba832d18cdf4daaa7e47820595fe041
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
2016-07-28 18:13:24 +00:00
..
benchmark build: move from srctree to ZEPHYR_BASE for app include paths 2016-06-30 14:36:39 +00:00
bluetooth Bluetooth: tester: Expose device address 2016-07-23 06:16:14 +00:00
compliance testcases: sample static testcase to run checkpatch on the source 2016-06-14 23:49:57 +00:00
crypto samples/net : Adding mbedTLS self test routine 2016-07-27 22:19:06 +00:00
drivers/pinmux sanitycheck: Add olimexino_stm32 board to sanitycheck 2016-04-20 22:29:02 +00:00
include tests: Allow tc_util to use printf when requested 2016-06-29 05:19:26 +00:00
kernel x86: improve exception APIs 2016-07-28 18:13:24 +00:00
net/buf net/yaip: revert merge 2016-07-22 04:43:09 +00:00
defaults.tc testcases: introduce defaults to build/deploy/evaluate 2016-07-23 18:31:18 +00:00