From 46581557c349e572c5f0d34f0f1e66b7f8996a10 Mon Sep 17 00:00:00 2001 From: deraadt Date: Fri, 5 Jun 2015 16:35:24 +0000 Subject: [PATCH] trunc_page() generally.... succeeds at clearing the page offset bits the first time it is called, so don't do it again. ok miod --- sys/arch/mips64/mips64/trap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/arch/mips64/mips64/trap.c b/sys/arch/mips64/mips64/trap.c index 6397193c545..dcdb6b4c467 100644 --- a/sys/arch/mips64/mips64/trap.c +++ b/sys/arch/mips64/mips64/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.105 2015/02/08 05:40:48 uebayasi Exp $ */ +/* $OpenBSD: trap.c,v 1.106 2015/06/05 16:35:24 deraadt Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -352,7 +352,7 @@ itsa(struct trap_frame *trapframe, struct cpu_info *ci, struct proc *p, onfault = pcb->pcb_onfault; pcb->pcb_onfault = 0; KERNEL_LOCK(); - rv = uvm_fault(kernel_map, trunc_page(va), 0, ftype); + rv = uvm_fault(kernel_map, va, 0, ftype); KERNEL_UNLOCK(); pcb->pcb_onfault = onfault; if (rv == 0) -- 2.20.1