Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hppa/hppa (Attempt to) bundle some stw/ldws and rem...
details: https://anonhg.NetBSD.org/src/rev/a60be39b8b55
branches: trunk
changeset: 762710:a60be39b8b55
user: skrll <skrll%NetBSD.org@localhost>
date: Sat Feb 26 07:52:32 2011 +0000
description:
(Attempt to) bundle some stw/ldws and remove redundant CR_TLS save.
diffstat:
sys/arch/hppa/hppa/trap.S | 13 +++++--------
1 files changed, 5 insertions(+), 8 deletions(-)
diffs (48 lines):
diff -r 55e53bbc28e0 -r a60be39b8b55 sys/arch/hppa/hppa/trap.S
--- a/sys/arch/hppa/hppa/trap.S Sat Feb 26 05:38:44 2011 +0000
+++ b/sys/arch/hppa/hppa/trap.S Sat Feb 26 07:52:32 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: trap.S,v 1.55 2011/02/24 08:57:39 skrll Exp $ */
+/* $NetBSD: trap.S,v 1.56 2011/02/26 07:52:32 skrll Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -508,13 +508,13 @@
mtctl %t2, %pidr4
#endif
ldw TF_CR27(%sr3, %t3), %t1
+ ldw TF_CR30(%sr3, %t3), %t2
mtctl %t1, CR_TLS
+ mtctl %t2, CR_FPPADDR
ldw TF_CR0(%sr3, %t3), %t1
mtctl %t1, %rctr
- ldw TF_CR30(%sr3, %t3), %t1
- mtctl %t1, CR_FPPADDR
GET_CURCPU_SPACE(%sr3, %t3)
@@ -2091,9 +2091,6 @@
stw %t1, TF_SR7(%sr3, %t3)
stw %t2, TF_CR9(%sr3, %t3)
- mfctl CR_TLS, %t1
- stw %t1, TF_CR27(%sr3, %t3)
-
mtsp %r0, %sr0
mtsp %r0, %sr1
mtsp %r0, %sr2
@@ -2201,10 +2198,10 @@
stw %t1, TF_CR24(%t3)
stw %t2, TF_CR28(%t3)
+#endif
mfctl CR_TLS, %t1
+ mfctl CR_FPPADDR, %t2
stw %t1, TF_CR27(%t3)
-#endif
- mfctl CR_FPPADDR, %t2
stw %t2, TF_CR30(%t3)
/*
Home |
Main Index |
Thread Index |
Old Index