Changeset ae89656 in mainline
- Timestamp:
- 2018-05-11T17:26:58Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7473807
- Parents:
- 8a8771c
- Location:
- kernel/arch/ia32
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/include/arch/interrupt.h
r8a8771c rae89656 51 51 52 52 #define EXC_DE 0 53 #define EXC_DB 1 53 54 #define EXC_NM 7 54 55 #define EXC_SS 12 … … 73 74 74 75 #define VECTOR_DE (IVT_EXCBASE + EXC_DE) 76 #define VECTOR_DB (IVT_EXCBASE + EXC_DB) 75 77 #define VECTOR_NM (IVT_EXCBASE + EXC_NM) 76 78 #define VECTOR_SS (IVT_EXCBASE + EXC_SS) -
kernel/arch/ia32/src/interrupt.c
r8a8771c rae89656 112 112 } 113 113 114 static void db_exception(unsigned int n, istate_t *istate) 115 { 116 /* 117 * We need to provide at least an empty handler that does not panic 118 * if the exception appears to come from the kernel because the 119 * userspace can inject a kernel-level #DB after e.g. the SYSENTER 120 * instruction if the EFLAGS.TF is set. 121 */ 122 } 123 114 124 /** General Protection Fault. */ 115 125 static void gp_fault(unsigned int n __attribute__((unused)), istate_t *istate) … … 231 241 232 242 exc_register(VECTOR_DE, "de_fault", true, (iroutine_t) de_fault); 243 exc_register(VECTOR_DB, "db_exc", true, (iroutine_t) db_exception); 233 244 exc_register(VECTOR_NM, "nm_fault", true, (iroutine_t) nm_fault); 234 245 exc_register(VECTOR_SS, "ss_fault", true, (iroutine_t) ss_fault);
Note:
See TracChangeset
for help on using the changeset viewer.