Module Name: src
Committed By: skrll
Date: Fri Apr 6 13:09:32 UTC 2012
Modified Files:
src/sys/arch/hppa/hppa: trap.S
Log Message:
Remove unnecessary cache flushes.
FP regs are stored in memory from a pool which is direct mapped and
therefore available in virtual and physical modes.
To generate a diff of this commit:
cvs rdiff -u -r1.66 -r1.67 src/sys/arch/hppa/hppa/trap.S
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/hppa/hppa/trap.S
diff -u src/sys/arch/hppa/hppa/trap.S:1.66 src/sys/arch/hppa/hppa/trap.S:1.67
--- src/sys/arch/hppa/hppa/trap.S:1.66 Fri Apr 6 12:21:59 2012
+++ src/sys/arch/hppa/hppa/trap.S Fri Apr 6 13:09:32 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: trap.S,v 1.66 2012/04/06 12:21:59 skrll Exp $ */
+/* $NetBSD: trap.S,v 1.67 2012/04/06 13:09:32 skrll Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -1094,19 +1094,6 @@ ALTENTRY(hppa_fpu_swap)
fstds,ma %fr30, 8(%arg0)
fstds %fr31, 0(%arg0)
- ldo -248(%arg0), %arg0
- ldil L%dcache_stride, %r1
- ldw R%dcache_stride(%r1), %r1
- fdc,m %r1(%arg0)
- fdc,m %r1(%arg0)
- fdc,m %r1(%arg0)
- fdc,m %r1(%arg0)
- fdc,m %r1(%arg0)
- fdc,m %r1(%arg0)
- fdc,m %r1(%arg0)
- fdc,m %r1(%arg0)
- sync
-
L$fpu_swap_in:
/*
@@ -1160,18 +1147,6 @@ L$fpu_swap_in:
fldds,ma -8(%arg1), %fr1
fldds 0(%arg1), %fr0 /* fr0 must be restored last */
- ldil L%dcache_stride, %r1
- ldw R%dcache_stride(%r1), %r1
- fdc,m %r1(%arg1)
- fdc,m %r1(%arg1)
- fdc,m %r1(%arg1)
- fdc,m %r1(%arg1)
- fdc,m %r1(%arg1)
- fdc,m %r1(%arg1)
- fdc,m %r1(%arg1)
- fdc,m %r1(%arg1)
- sync
-
L$fpu_swap_done:
/* Increment the switch count and return. */