mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 16:50:25 -04:00
Removed he BPTTRAP() macro and its use. It was intended for restoring
bug for bug compatibility to ddb trap handlers after fixing the debugger trap gates to be interrupt gates, but the fix was never committed. Now I want the fix to apply to ddb.
This commit is contained in:
parent
807ef07ea1
commit
d072acf902
3 changed files with 6 additions and 12 deletions
|
|
@ -109,8 +109,6 @@ __CONCAT(__CONCAT(bdb_,name),_ljmp): \
|
|||
#define BDBTRAP(name)
|
||||
#endif
|
||||
|
||||
#define BPTTRAP(a) testl $PSL_I,4+8(%esp) ; je 1f ; sti ; 1: ; TRAP(a)
|
||||
|
||||
MCOUNT_LABEL(user)
|
||||
MCOUNT_LABEL(btrap)
|
||||
|
||||
|
|
@ -118,12 +116,12 @@ IDTVEC(div)
|
|||
pushl $0; TRAP(T_DIVIDE)
|
||||
IDTVEC(dbg)
|
||||
BDBTRAP(dbg)
|
||||
pushl $0; BPTTRAP(T_TRCTRAP)
|
||||
pushl $0; TRAP(T_TRCTRAP)
|
||||
IDTVEC(nmi)
|
||||
pushl $0; TRAP(T_NMI)
|
||||
IDTVEC(bpt)
|
||||
BDBTRAP(bpt)
|
||||
pushl $0; BPTTRAP(T_BPTFLT)
|
||||
pushl $0; TRAP(T_BPTFLT)
|
||||
IDTVEC(ofl)
|
||||
pushl $0; TRAP(T_OFLOW)
|
||||
IDTVEC(bnd)
|
||||
|
|
|
|||
|
|
@ -109,8 +109,6 @@ __CONCAT(__CONCAT(bdb_,name),_ljmp): \
|
|||
#define BDBTRAP(name)
|
||||
#endif
|
||||
|
||||
#define BPTTRAP(a) testl $PSL_I,4+8(%esp) ; je 1f ; sti ; 1: ; TRAP(a)
|
||||
|
||||
MCOUNT_LABEL(user)
|
||||
MCOUNT_LABEL(btrap)
|
||||
|
||||
|
|
@ -118,12 +116,12 @@ IDTVEC(div)
|
|||
pushl $0; TRAP(T_DIVIDE)
|
||||
IDTVEC(dbg)
|
||||
BDBTRAP(dbg)
|
||||
pushl $0; BPTTRAP(T_TRCTRAP)
|
||||
pushl $0; TRAP(T_TRCTRAP)
|
||||
IDTVEC(nmi)
|
||||
pushl $0; TRAP(T_NMI)
|
||||
IDTVEC(bpt)
|
||||
BDBTRAP(bpt)
|
||||
pushl $0; BPTTRAP(T_BPTFLT)
|
||||
pushl $0; TRAP(T_BPTFLT)
|
||||
IDTVEC(ofl)
|
||||
pushl $0; TRAP(T_OFLOW)
|
||||
IDTVEC(bnd)
|
||||
|
|
|
|||
|
|
@ -109,8 +109,6 @@ __CONCAT(__CONCAT(bdb_,name),_ljmp): \
|
|||
#define BDBTRAP(name)
|
||||
#endif
|
||||
|
||||
#define BPTTRAP(a) testl $PSL_I,4+8(%esp) ; je 1f ; sti ; 1: ; TRAP(a)
|
||||
|
||||
MCOUNT_LABEL(user)
|
||||
MCOUNT_LABEL(btrap)
|
||||
|
||||
|
|
@ -118,12 +116,12 @@ IDTVEC(div)
|
|||
pushl $0; TRAP(T_DIVIDE)
|
||||
IDTVEC(dbg)
|
||||
BDBTRAP(dbg)
|
||||
pushl $0; BPTTRAP(T_TRCTRAP)
|
||||
pushl $0; TRAP(T_TRCTRAP)
|
||||
IDTVEC(nmi)
|
||||
pushl $0; TRAP(T_NMI)
|
||||
IDTVEC(bpt)
|
||||
BDBTRAP(bpt)
|
||||
pushl $0; BPTTRAP(T_BPTFLT)
|
||||
pushl $0; TRAP(T_BPTFLT)
|
||||
IDTVEC(ofl)
|
||||
pushl $0; TRAP(T_OFLOW)
|
||||
IDTVEC(bnd)
|
||||
|
|
|
|||
Loading…
Reference in a new issue