zephyr/tests/arch/x86/static_idt
Andrew Boie f2422f1f19 tests: clean up fatal error handlers
- k_sys_fatal_error_handler() can return on all platforms,
  indicating that the faulting thread should be aborted.
- Hang the system for unexpected faults instead of trying
  to keep going, we have no idea whether the system is even
  runnable.

Prevents infinite crash loops during tests.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
2019-08-06 19:32:22 -07:00
..
src tests: clean up fatal error handlers 2019-08-06 19:32:22 -07:00
CMakeLists.txt tests: arch: x86: move static_idx under tests/arch/x86 2019-07-09 09:53:44 -07:00
README.txt tests: arch: x86: move static_idx under tests/arch/x86 2019-07-09 09:53:44 -07:00
prj.conf tests: arch: x86: move static_idx under tests/arch/x86 2019-07-09 09:53:44 -07:00
testcase.yaml tests: arch: x86: move static_idx under tests/arch/x86 2019-07-09 09:53:44 -07:00

README.txt

Title: Static IDT Support

Description:

This test verifies that the static IDT feature operates as expected.

--------------------------------------------------------------------------------

Building and Running Project:

This project outputs to the console.  It can be built and executed
on QEMU as follows:

    make run


Sample Output:

tc_start() - Starting static IDT tests
Testing to see if IDT has address of test stubs()
Testing to see interrupt handler executes properly
Testing to see exception handler executes properly
Testing to see spurious handler executes properly
- Expect to see unhandled interrupt/exception message
***** Unhandled interrupt vector *****
Current thread ID = 0x001028e0
Faulting segment:address = 0x8:0x1001c9
eax: 0xa, ebx: 0x0, ecx: 0x1018e0, edx: 0xa
esi: 0x0, edi: 0x0, ebp: 01030b4, esp: 0x1030b4
eflags: 0x202
Fatal fault in thread 0x001028e0! Aborting.
PASS - main.
===================================================================
PROJECT EXECUTION SUCCESSFUL