Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64/sparc64 Use LDPTR macro.
details: https://anonhg.NetBSD.org/src/rev/01fa3812e00b
branches: trunk
changeset: 783454:01fa3812e00b
user: nakayama <nakayama%NetBSD.org@localhost>
date: Sat Dec 22 20:08:08 2012 +0000
description:
Use LDPTR macro.
diffstat:
sys/arch/sparc64/sparc64/cpu_in_cksum.S | 20 ++++----------------
1 files changed, 4 insertions(+), 16 deletions(-)
diffs (48 lines):
diff -r 89ce5350b644 -r 01fa3812e00b sys/arch/sparc64/sparc64/cpu_in_cksum.S
--- a/sys/arch/sparc64/sparc64/cpu_in_cksum.S Sat Dec 22 18:58:29 2012 +0000
+++ b/sys/arch/sparc64/sparc64/cpu_in_cksum.S Sat Dec 22 20:08:08 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu_in_cksum.S,v 1.2 2009/10/19 18:12:37 snj Exp $ */
+/* $NetBSD: cpu_in_cksum.S,v 1.3 2012/12/22 20:08:08 nakayama Exp $ */
/*
* Copyright (c) 2001 Eduardo Horvath
@@ -95,11 +95,7 @@
lduw [%o0 + M_LEN], %o2 ! Code duplicated at Lloop
srlx %o3, 32, %g4 ! REDUCE bigtime
sethi %hi(0xffff), %g5
-#ifdef __arch64__
- ldx [%o0 + M_DATA], %o5
-#else
- lduw [%o0 + M_DATA], %o5
-#endif
+ LDPTR [%o0 + M_DATA], %o5
srl %o3, 0, %o3
or %g5, %lo(0xffff), %g5
@@ -112,11 +108,7 @@
lduw [%o0 + M_LEN], %o2
srlx %o3, 32, %g4 ! REDUCE bigtime
sethi %hi(0xffff), %g5
-#ifdef __arch64__
- ldx [%o0 + M_DATA], %o5
-#else
- lduw [%o0 + M_DATA], %o5
-#endif
+ LDPTR [%o0 + M_DATA], %o5
srl %o3, 0, %o3
or %g5, %lo(0xffff), %g5
0:
@@ -210,11 +202,7 @@
add %o3, %o4, %o3
Lnext:
-#ifdef __arch64__
- ldx [%o0 + M_NEXT], %o0
-#else
- lduw [%o0 + M_NEXT], %o0
-#endif
+ LDPTR [%o0 + M_NEXT], %o0
Lfinish:
srlx %o3, 32, %o4 ! Reduce to 32-bits
srl %o3, 0, %o3
Home |
Main Index |
Thread Index |
Old Index