Ignore:
Timestamp:
2018-05-11T17:26:58Z (6 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7473807
Parents:
8a8771c
Message:

Provide an empty #DB handler

Userspace can trigger a #DB exception just after the SYSENTER
instruction by setting the TF in EFLAGS. The #DB exception will appear
to have originated in the kernel so we must not panic in that case.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia32/include/arch/interrupt.h

    r8a8771c rae89656  
    5151
    5252#define EXC_DE 0
     53#define EXC_DB 1
    5354#define EXC_NM 7
    5455#define EXC_SS 12
     
    7374
    7475#define VECTOR_DE                 (IVT_EXCBASE + EXC_DE)
     76#define VECTOR_DB                 (IVT_EXCBASE + EXC_DB)
    7577#define VECTOR_NM                 (IVT_EXCBASE + EXC_NM)
    7678#define VECTOR_SS                 (IVT_EXCBASE + EXC_SS)
Note: See TracChangeset for help on using the changeset viewer.