diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2010-03-30 14:57:03 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2010-03-30 14:57:03 +0000 |
commit | 8d6a9a5df677eb9457c6acff6d14221373debc27 (patch) | |
tree | 84d71417eb255a601a1f5d65d82dcf1bf83d77af /sys/arch | |
parent | b259c858f412d7c0fce5e1fd6cb1ddd0129f83da (diff) |
Since we use a direct mapping for the area where we save a process' floating
point registers, we no longer need to flush/purge the cache.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/hppa/hppa/process_machdep.c | 3 | ||||
-rw-r--r-- | sys/arch/hppa/hppa/trap.c | 4 |
2 files changed, 2 insertions, 5 deletions
diff --git a/sys/arch/hppa/hppa/process_machdep.c b/sys/arch/hppa/hppa/process_machdep.c index 192bf61d72c..30e37188824 100644 --- a/sys/arch/hppa/hppa/process_machdep.c +++ b/sys/arch/hppa/hppa/process_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: process_machdep.c,v 1.15 2009/07/29 18:31:11 kettenis Exp $ */ +/* $OpenBSD: process_machdep.c,v 1.16 2010/03/30 14:57:02 kettenis Exp $ */ /* * Copyright (c) 1999-2004 Michael Shalayeff @@ -95,7 +95,6 @@ process_read_fpregs(p, fpregs) mtctl(0, CR_CCR); } bcopy(p->p_addr->u_pcb.pcb_fpregs, fpregs, 32 * 8); - pdcache(HPPA_SID_KERNEL, (vaddr_t)p->p_addr->u_pcb.pcb_fpregs, 32 * 8); return (0); } diff --git a/sys/arch/hppa/hppa/trap.c b/sys/arch/hppa/hppa/trap.c index 0f7866899f3..14cf4eb9bd7 100644 --- a/sys/arch/hppa/hppa/trap.c +++ b/sys/arch/hppa/hppa/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.105 2010/03/27 14:55:01 jsing Exp $ */ +/* $OpenBSD: trap.c,v 1.106 2010/03/30 14:57:02 kettenis Exp $ */ /* * Copyright (c) 1998-2004 Michael Shalayeff @@ -325,8 +325,6 @@ trap(type, frame) } /* reset the trap flag, as if there was none */ fpp[0] &= ~(((u_int64_t)HPPA_FPU_T) << 32); - /* flush out, since load is done from phys, only 4 regs */ - fdcache(HPPA_SID_KERNEL, (vaddr_t)fpp, 8 * 4); sv.sival_int = va; KERNEL_PROC_LOCK(p); |