Module Name:    src
Committed By:   maxv
Date:           Sat Aug 27 16:17:16 UTC 2016

Modified Files:
        src/sys/arch/amd64/amd64: machdep.c

Log Message:
Don't protect the second page, since it is not part of the IDT.


To generate a diff of this commit:
cvs rdiff -u -r1.229 -r1.230 src/sys/arch/amd64/amd64/machdep.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/amd64/amd64/machdep.c
diff -u src/sys/arch/amd64/amd64/machdep.c:1.229 src/sys/arch/amd64/amd64/machdep.c:1.230
--- src/sys/arch/amd64/amd64/machdep.c:1.229	Sat Aug 27 16:07:26 2016
+++ src/sys/arch/amd64/amd64/machdep.c	Sat Aug 27 16:17:16 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: machdep.c,v 1.229 2016/08/27 16:07:26 maxv Exp $	*/
+/*	$NetBSD: machdep.c,v 1.230 2016/08/27 16:17:16 maxv Exp $	*/
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 2000, 2006, 2007, 2008, 2011
@@ -111,7 +111,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.229 2016/08/27 16:07:26 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.230 2016/08/27 16:17:16 maxv Exp $");
 
 /* #define XENDEBUG_LOW  */
 
@@ -1828,8 +1828,6 @@ cpu_reset(void)
 	 */
 	kpreempt_disable();
 	pmap_changeprot_local(idt_vaddr, VM_PROT_READ|VM_PROT_WRITE);           
-	pmap_changeprot_local(idt_vaddr + PAGE_SIZE,
-	    VM_PROT_READ|VM_PROT_WRITE);
 	memset((void *)idt, 0, NIDT * sizeof(idt[0]));
 	kpreempt_enable();
 	breakpoint();

Reply via email to