summaryrefslogtreecommitdiff
path: root/sys/arch/mips64
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2016-10-19 08:28:21 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2016-10-19 08:28:21 +0000
commit3479986a00a06d19b0e074a8b2921e11c42ed785 (patch)
tree0276640a9f50799f010a1887362352c432828bc9 /sys/arch/mips64
parent149943d4909712305e1a2fddd6e67c2f033a4f3c (diff)
Change pmap_proc_iflush() to take a process instead of a proc
powerpc: rename second argument of pmap_proc_iflush() to match other archs ok kettenis@
Diffstat (limited to 'sys/arch/mips64')
-rw-r--r--sys/arch/mips64/mips64/pmap.c6
-rw-r--r--sys/arch/mips64/mips64/trap.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/mips64/mips64/pmap.c b/sys/arch/mips64/mips64/pmap.c
index e0c3ea47b99..f0b5531c4e9 100644
--- a/sys/arch/mips64/mips64/pmap.c
+++ b/sys/arch/mips64/mips64/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.93 2016/10/08 05:49:09 guenther Exp $ */
+/* $OpenBSD: pmap.c,v 1.94 2016/10/19 08:28:20 guenther Exp $ */
/*
* Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
@@ -1987,10 +1987,10 @@ pmap_pg_free(struct pool *pp, void *item)
}
void
-pmap_proc_iflush(struct proc *p, vaddr_t va, vsize_t len)
+pmap_proc_iflush(struct process *pr, vaddr_t va, vsize_t len)
{
#ifdef MULTIPROCESSOR
- struct pmap *pmap = vm_map_pmap(&p->p_vmspace->vm_map);
+ struct pmap *pmap = vm_map_pmap(&pr->ps_vmspace->vm_map);
CPU_INFO_ITERATOR cii;
struct cpu_info *ci;
diff --git a/sys/arch/mips64/mips64/trap.c b/sys/arch/mips64/mips64/trap.c
index ca67ccbebba..7539154a7a1 100644
--- a/sys/arch/mips64/mips64/trap.c
+++ b/sys/arch/mips64/mips64/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.120 2016/10/19 08:23:37 guenther Exp $ */
+/* $OpenBSD: trap.c,v 1.121 2016/10/19 08:28:20 guenther Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -1534,7 +1534,7 @@ fpe_branch_emulate(struct proc *p, struct trapframe *tf, uint32_t insn,
p->p_md.md_fpslotva = (vaddr_t)tf->pc + 4;
p->p_md.md_flags |= MDP_FPUSED;
tf->pc = p->p_md.md_fppgva;
- pmap_proc_iflush(p, tf->pc, 2 * 4);
+ pmap_proc_iflush(p->p_p, tf->pc, 2 * 4);
return 0;