Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/x86 Fix unset_idtgate() for XENPV, pointed out ...
details: https://anonhg.NetBSD.org/src/rev/d748a02a3af4
branches: trunk
changeset: 935507:d748a02a3af4
user: bouyer <bouyer%NetBSD.org@localhost>
date: Sat Jul 04 09:03:54 2020 +0000
description:
Fix unset_idtgate() for XENPV, pointed out by yamaguchi@
diffstat:
sys/arch/x86/x86/idt.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 8393dedec6f8 -r d748a02a3af4 sys/arch/x86/x86/idt.c
--- a/sys/arch/x86/x86/idt.c Sat Jul 04 08:10:21 2020 +0000
+++ b/sys/arch/x86/x86/idt.c Sat Jul 04 09:03:54 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: idt.c,v 1.11 2019/06/17 06:38:30 msaitoh Exp $ */
+/* $NetBSD: idt.c,v 1.12 2020/07/04 09:03:54 bouyer 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.11 2019/06/17 06:38:30 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: idt.c,v 1.12 2020/07/04 09:03:54 bouyer Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -132,7 +132,7 @@
unset_idtgate(struct trap_info *xen_idd)
{
#if defined(__x86_64__)
- vaddr_t xen_idt_vaddr = ((vaddr_t) xen_idd) & PAGE_MASK;
+ vaddr_t xen_idt_vaddr = ((vaddr_t) xen_idd) & ~PAGE_MASK;
/* Make it writeable, so we can update the values. */
pmap_changeprot_local(xen_idt_vaddr, VM_PROT_READ | VM_PROT_WRITE);
Home |
Main Index |
Thread Index |
Old Index