diff options
author | Christopher Pascoe <pascoe@cvs.openbsd.org> | 2007-11-12 01:17:42 +0000 |
---|---|---|
committer | Christopher Pascoe <pascoe@cvs.openbsd.org> | 2007-11-12 01:17:42 +0000 |
commit | c6038af1e3507a4b802a3d49f576a981635c520a (patch) | |
tree | 172699f8dd35d60e21f61e99b98e374587a4fe0c /sys/arch | |
parent | ec8cb724ff8ea37c3b849e05381bda177417f27b (diff) |
Select the right GDT entry for interrupt handlers on i386 systems when
using ioapics, so that interrupt time is accounted correctly. This
fixes the problem that 0% interrupt time is always shown when running MP.
ok dlg@, suspect this is correct art@, just an oversight niklas@
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/i386/i386/machdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/i386/i386/machdep.c b/sys/arch/i386/i386/machdep.c index de3e74d43ab..18048c55d47 100644 --- a/sys/arch/i386/i386/machdep.c +++ b/sys/arch/i386/i386/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.410 2007/11/03 03:37:08 weingart Exp $ */ +/* $OpenBSD: machdep.c,v 1.411 2007/11/12 01:17:41 pascoe Exp $ */ /* $NetBSD: machdep.c,v 1.214 1996/11/10 03:16:17 thorpej Exp $ */ /*- @@ -3265,7 +3265,7 @@ idt_vec_alloc(int low, int high) void idt_vec_set(int vec, void (*function)(void)) { - setgate(&idt[vec], function, 0, SDT_SYS386IGT, SEL_KPL, GCODE_SEL); + setgate(&idt[vec], function, 0, SDT_SYS386IGT, SEL_KPL, GICODE_SEL); } void |