Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-8]: src/sys/arch/x86/x86 Pull up following revision(s) (requested...



details:   https://anonhg.NetBSD.org/src/rev/1b9622983e0b
branches:  netbsd-8
changeset: 850948:1b9622983e0b
user:      snj <snj%NetBSD.org@localhost>
date:      Fri Aug 25 05:41:55 2017 +0000

description:
Pull up following revision(s) (requested by jdolecek in ticket #224):
        sys/arch/x86/x86/idt.c: revision 1.5
Remove incorrect KASSERT, only the allocation is protected by cpu_lock.

diffstat:

 sys/arch/x86/x86/idt.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r df78b6bb4efa -r 1b9622983e0b sys/arch/x86/x86/idt.c
--- a/sys/arch/x86/x86/idt.c    Fri Aug 25 05:39:52 2017 +0000
+++ b/sys/arch/x86/x86/idt.c    Fri Aug 25 05:41:55 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: idt.c,v 1.4 2016/08/27 14:19:47 maxv Exp $     */
+/*     $NetBSD: idt.c,v 1.4.8.1 2017/08/25 05:41:55 snj Exp $  */
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 2000, 2009 The NetBSD Foundation, Inc.
@@ -65,7 +65,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: idt.c,v 1.4 2016/08/27 14:19:47 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: idt.c,v 1.4.8.1 2017/08/25 05:41:55 snj Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -119,7 +119,6 @@
 idt_vec_set(int vec, void (*function)(void))
 {
 
-       KASSERT(mutex_owned(&cpu_lock) || !mp_online);
        KASSERT(idt_allocmap[vec] == 1);
        setgate(&idt[vec], function, 0, SDT_SYS386IGT, SEL_KPL,
            GSEL(GCODE_SEL, SEL_KPL));



Home | Main Index | Thread Index | Old Index