diff options
author | peter <peter@FreeBSD.org> | 2003-07-23 23:20:20 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2003-07-23 23:20:20 +0000 |
commit | c43dfc354a92b4cece8ba9f0af8804e3ee4b60ae (patch) | |
tree | ba7b5fab122fad8216267157d078b1d72d715a4e | |
parent | 65f0b759da872547aefefcd0237222103acd43ef (diff) | |
download | FreeBSD-src-c43dfc354a92b4cece8ba9f0af8804e3ee4b60ae.zip FreeBSD-src-c43dfc354a92b4cece8ba9f0af8804e3ee4b60ae.tar.gz |
Make the breakpoint instruction trap gate available to users.
ptrace() needs this.
Submitted by: Mark Kettenis <kettenis@chello.nl>
-rw-r--r-- | sys/amd64/amd64/machdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index 47094fd..0fb7a7d 100644 --- a/sys/amd64/amd64/machdep.c +++ b/sys/amd64/amd64/machdep.c @@ -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); |