diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2005-10-28 16:59:20 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2005-10-28 16:59:20 +0000 |
commit | b0a4273ca1900125d451162384a1e45729e132fd (patch) | |
tree | 8bac8ba40b2d137c597833daf41e4c58ac7a1e48 /sys/arch | |
parent | 365da87cbc8aca56d7ecd6e322937ea13ed447d5 (diff) |
Use normal kernel stack for #BP exceptions. Fixes PR 4562.
ok weingart@, deraadt@
Fix from myself, via NetBSD. Duh!
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/amd64/amd64/machdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/amd64/amd64/machdep.c b/sys/arch/amd64/amd64/machdep.c index 13c4f60e6ed..e36886a7301 100644 --- a/sys/arch/amd64/amd64/machdep.c +++ b/sys/arch/amd64/amd64/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.37 2005/10/26 18:46:06 martin Exp $ */ +/* $OpenBSD: machdep.c,v 1.38 2005/10/28 16:59:19 kettenis Exp $ */ /* $NetBSD: machdep.c,v 1.3 2003/05/07 22:58:18 fvdl Exp $ */ /*- @@ -1661,7 +1661,7 @@ init_x86_64(first_avail) /* exceptions */ for (x = 0; x < 32; x++) { - ist = (x == 8 || x == 3) ? 1 : 0; + ist = (x == 8) ? 1 : 0; setgate(&idt[x], IDTVEC(exceptions)[x], ist, SDT_SYS386IGT, (x == 3 || x == 4) ? SEL_UPL : SEL_KPL, GSEL(GCODE_SEL, SEL_KPL)); |