Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/amd64/amd64 Don't protect the second page, since it...
details: https://anonhg.NetBSD.org/src/rev/deb9503a5134
branches: trunk
changeset: 347486:deb9503a5134
user: maxv <maxv%NetBSD.org@localhost>
date: Sat Aug 27 16:17:16 2016 +0000
description:
Don't protect the second page, since it is not part of the IDT.
diffstat:
sys/arch/amd64/amd64/machdep.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diffs (27 lines):
diff -r b59affe2fbe5 -r deb9503a5134 sys/arch/amd64/amd64/machdep.c
--- a/sys/arch/amd64/amd64/machdep.c Sat Aug 27 16:07:26 2016 +0000
+++ b/sys/arch/amd64/amd64/machdep.c Sat Aug 27 16:17:16 2016 +0000
@@ -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 @@
*/
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();
Home |
Main Index |
Thread Index |
Old Index