Module Name: src Committed By: maxv Date: Mon Aug 7 17:10:09 UTC 2017
Modified Files: src/sys/arch/x86/x86: idt.c Log Message: Remove incorrect KASSERT, only the allocation is protected by cpu_lock. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/arch/x86/x86/idt.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/x86/x86/idt.c diff -u src/sys/arch/x86/x86/idt.c:1.4 src/sys/arch/x86/x86/idt.c:1.5 --- src/sys/arch/x86/x86/idt.c:1.4 Sat Aug 27 14:19:47 2016 +++ src/sys/arch/x86/x86/idt.c Mon Aug 7 17:10:09 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: idt.c,v 1.4 2016/08/27 14:19:47 maxv Exp $ */ +/* $NetBSD: idt.c,v 1.5 2017/08/07 17:10:09 maxv 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.5 2017/08/07 17:10:09 maxv Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -119,7 +119,6 @@ void 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));