Make the breakpoint instruction trap gate available to users.

ptrace() needs this.

Submitted by:	Mark Kettenis <kettenis@chello.nl>
This commit is contained in:
Peter Wemm 2003-07-23 23:20:20 +00:00
parent 8b48b40d5e
commit 9e9e575b6a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=117943

View File

@ -1170,7 +1170,7 @@ hammer_time(u_int64_t modulep, u_int64_t physfree)
setidt(0, &IDTVEC(div), SDT_SYSIGT, SEL_KPL, 0);
setidt(1, &IDTVEC(dbg), SDT_SYSIGT, SEL_KPL, 0);
setidt(2, &IDTVEC(nmi), SDT_SYSIGT, SEL_KPL, 0);
setidt(3, &IDTVEC(bpt), SDT_SYSIGT, SEL_KPL, 0);
setidt(3, &IDTVEC(bpt), SDT_SYSIGT, SEL_UPL, 0);
setidt(4, &IDTVEC(ofl), SDT_SYSIGT, SEL_KPL, 0);
setidt(5, &IDTVEC(bnd), SDT_SYSIGT, SEL_KPL, 0);
setidt(6, &IDTVEC(ill), SDT_SYSIGT, SEL_KPL, 0);