x86: improve exception debugging
We now dump more information for less common cases, and this is now centralized code for 32-bit/64-bit. All of this code is now correctly wrapped around CONFIG_EXCEPTION_DEBUG. Some cruft and unused defines removed. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
94140b6816
commit
2b67ca8ac9
6 changed files with 125 additions and 68 deletions
|
@ -18,23 +18,6 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Bitmask used to determine which exceptions result in an error code being
|
||||
* pushed onto the stack. The following exception vectors push an error code:
|
||||
*
|
||||
* Vector Mnemonic Description
|
||||
* ------ ------- ----------------------
|
||||
* 8 #DF Double Fault
|
||||
* 10 #TS Invalid TSS
|
||||
* 11 #NP Segment Not Present
|
||||
* 12 #SS Stack Segment Fault
|
||||
* 13 #GP General Protection Fault
|
||||
* 14 #PF Page Fault
|
||||
* 17 #AC Alignment Check
|
||||
*/
|
||||
#define _EXC_ERROR_CODE_FAULTS 0x27d00U
|
||||
|
||||
|
||||
/* NOTE: We currently do not have definitions for 16-bit segment, currently
|
||||
* assume everything we are working with is 32-bit
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue