Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src Convert to normal Motorola syntax for addressing.
details: https://anonhg.NetBSD.org/src/rev/dd0a7ce3ace2
branches: trunk
changeset: 787957:dd0a7ce3ace2
user: matt <matt%NetBSD.org@localhost>
date: Tue Jul 16 20:49:41 2013 +0000
description:
Convert to normal Motorola syntax for addressing.
%r@ -> (%r)
%r@- -> -(%r)
%r@+ -> (%r)+
%r@(n) n(%r)
etc.
No object differences.
diffstat:
common/lib/libc/arch/m68k/atomic/atomic_add.S | 12 +-
common/lib/libc/arch/m68k/atomic/atomic_and.S | 12 +-
common/lib/libc/arch/m68k/atomic/atomic_cas.S | 8 +-
common/lib/libc/arch/m68k/atomic/atomic_cas_68000.S | 10 +-
common/lib/libc/arch/m68k/atomic/atomic_dec.S | 8 +-
common/lib/libc/arch/m68k/atomic/atomic_inc.S | 8 +-
common/lib/libc/arch/m68k/atomic/atomic_or.S | 12 +-
common/lib/libc/arch/m68k/atomic/atomic_swap.S | 8 +-
common/lib/libc/arch/m68k/gen/bswap16.S | 4 +-
common/lib/libc/arch/m68k/gen/bswap32.S | 4 +-
common/lib/libc/arch/m68k/gen/bswap64.S | 6 +-
common/lib/libc/arch/m68k/gen/divsi3.S | 22 +++---
common/lib/libc/arch/m68k/gen/modsi3.S | 24 +++---
common/lib/libc/arch/m68k/gen/mulsi3.S | 16 ++--
common/lib/libc/arch/m68k/gen/udivsi3.S | 20 +++---
common/lib/libc/arch/m68k/gen/umodsi3.S | 12 +-
common/lib/libc/arch/m68k/net/htonl.S | 6 +-
common/lib/libc/arch/m68k/net/htons.S | 6 +-
common/lib/libc/arch/m68k/net/ntohl.S | 6 +-
common/lib/libc/arch/m68k/net/ntohs.S | 6 +-
common/lib/libc/arch/m68k/string/bcmp.S | 34 +++++-----
common/lib/libc/arch/m68k/string/bcopy.S | 66 ++++++++++----------
common/lib/libc/arch/m68k/string/bzero.S | 36 +++++-----
common/lib/libc/arch/m68k/string/ffs.S | 8 +-
common/lib/libc/arch/m68k/string/memcmp.S | 20 +++---
common/lib/libc/arch/m68k/string/memset.S | 40 ++++++------
common/lib/libc/arch/m68k/string/strcat.S | 12 +-
common/lib/libc/arch/m68k/string/strchr.S | 12 +-
common/lib/libc/arch/m68k/string/strcmp.S | 26 ++++----
common/lib/libc/arch/m68k/string/strcpy.S | 10 +-
common/lib/libc/arch/m68k/string/strlen.S | 8 +-
common/lib/libc/arch/m68k/string/strncmp.S | 28 ++++----
common/lib/libc/arch/m68k/string/strncpy.S | 14 ++--
common/lib/libc/arch/m68k/string/strrchr.S | 12 +-
lib/libc/arch/m68k/gen/_setjmp.S | 36 +++++-----
lib/libc/arch/m68k/gen/adddf3.S | 14 ++--
lib/libc/arch/m68k/gen/addsf3.S | 8 +-
lib/libc/arch/m68k/gen/alloca.S | 12 +-
lib/libc/arch/m68k/gen/ashlsi3.S | 8 +-
lib/libc/arch/m68k/gen/ashrsi3.S | 8 +-
lib/libc/arch/m68k/gen/cmpdf2.S | 8 +-
lib/libc/arch/m68k/gen/cmpsf2.S | 8 +-
lib/libc/arch/m68k/gen/divdf3.S | 14 ++--
lib/libc/arch/m68k/gen/divsf3.S | 8 +-
lib/libc/arch/m68k/gen/extendsfdf2.S | 12 +-
lib/libc/arch/m68k/gen/fabs.S | 12 +-
lib/libc/arch/m68k/gen/fixdfsi.S | 6 +-
lib/libc/arch/m68k/gen/fixunsdfsi.S | 6 +-
lib/libc/arch/m68k/gen/floatsidf.S | 12 +-
lib/libc/arch/m68k/gen/flt_rounds_softfloat.S | 4 +-
lib/libc/arch/m68k/gen/fpsetmask.S | 8 +-
lib/libc/arch/m68k/gen/fpsetround.S | 8 +-
lib/libc/arch/m68k/gen/fpsetsticky.S | 8 +-
lib/libc/arch/m68k/gen/lshlsi3.S | 8 +-
lib/libc/arch/m68k/gen/lshrsi3.S | 8 +-
lib/libc/arch/m68k/gen/modf.S | 16 ++--
lib/libc/arch/m68k/gen/muldf3.S | 14 ++--
lib/libc/arch/m68k/gen/mulsf3.S | 8 +-
lib/libc/arch/m68k/gen/negdf2.S | 10 +-
lib/libc/arch/m68k/gen/negsf2.S | 8 +-
lib/libc/arch/m68k/gen/resumecontext.S | 14 ++--
lib/libc/arch/m68k/gen/setjmp.S | 42 ++++++------
lib/libc/arch/m68k/gen/sigsetjmp.S | 14 ++--
lib/libc/arch/m68k/gen/subdf3.S | 14 ++--
lib/libc/arch/m68k/gen/subsf3.S | 8 +-
lib/libc/arch/m68k/gen/swapcontext.S | 14 ++--
lib/libc/arch/m68k/gen/truncdfsf2.S | 6 +-
lib/libc/arch/m68k/gen/umulsi3.S | 8 +-
lib/libc/arch/m68k/quad/ashldi3.S | 16 ++--
lib/libc/arch/m68k/quad/ashrdi3.S | 16 ++--
lib/libc/arch/m68k/quad/lshrdi3.S | 16 ++--
lib/libc/arch/m68k/stdlib/abs.S | 6 +-
lib/libc/arch/m68k/stdlib/llabs.S | 8 +-
lib/libc/arch/m68k/string/memccpy.S | 24 +++---
lib/libc/arch/m68k/string/swab.S | 12 +-
lib/libc/arch/m68k/sys/__clone.S | 24 +++---
lib/libc/arch/m68k/sys/__sigtramp2.S | 8 +-
lib/libc/arch/m68k/sys/__vfork14.S | 39 ++++--------
lib/libc/arch/m68k/sys/brk.S | 32 +++------
lib/libc/arch/m68k/sys/cerror.S | 27 ++------
lib/libc/arch/m68k/sys/getcontext.S | 12 +-
lib/libc/arch/m68k/sys/pipe.S | 10 +-
lib/libc/arch/m68k/sys/ptrace.S | 25 +------
lib/libc/arch/m68k/sys/sbrk.S | 33 ++++------
84 files changed, 591 insertions(+), 645 deletions(-)
diffs (truncated from 3276 to 300 lines):
diff -r 2042e455f465 -r dd0a7ce3ace2 common/lib/libc/arch/m68k/atomic/atomic_add.S
--- a/common/lib/libc/arch/m68k/atomic/atomic_add.S Tue Jul 16 20:17:06 2013 +0000
+++ b/common/lib/libc/arch/m68k/atomic/atomic_add.S Tue Jul 16 20:49:41 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atomic_add.S,v 1.4 2008/05/25 15:56:11 chs Exp $ */
+/* $NetBSD: atomic_add.S,v 1.5 2013/07/16 20:49:41 matt Exp $ */
/*-
* Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -35,8 +35,8 @@
.align 2
ENTRY(_atomic_add_32)
- movl %sp@(4), %a0
- movl %sp@(8), %d0
+ movl 4(%sp), %a0
+ movl 8(%sp), %d0
addl %d0, %a0@
rts
ATOMIC_OP_ALIAS(atomic_add_32,_atomic_add_32)
@@ -48,10 +48,10 @@
STRONG_ALIAS(_atomic_add_ptr,_atomic_add_32)
ENTRY(_atomic_add_32_nv)
- movl %sp@(4), %a0
-1: movl %a0@, %d0
+ movl 4(%sp), %a0
+1: movl (%a0), %d0
movl %d0, %d1
- addl %sp@(8), %d0
+ addl 8(%sp), %d0
casl %d1, %d0, %a0@
bne 1b
movl %d0, %a0 /* pointers return also in %a0 */
diff -r 2042e455f465 -r dd0a7ce3ace2 common/lib/libc/arch/m68k/atomic/atomic_and.S
--- a/common/lib/libc/arch/m68k/atomic/atomic_and.S Tue Jul 16 20:17:06 2013 +0000
+++ b/common/lib/libc/arch/m68k/atomic/atomic_and.S Tue Jul 16 20:49:41 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atomic_and.S,v 1.6 2008/05/25 15:56:11 chs Exp $ */
+/* $NetBSD: atomic_and.S,v 1.7 2013/07/16 20:49:41 matt Exp $ */
/*-
* Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -34,8 +34,8 @@
.text
ENTRY(_atomic_and_32)
- movl %sp@(4), %a0
- movl %sp@(8), %d0
+ movl 4(%sp), %a0
+ movl 8(%sp), %d0
andl %d0, %a0@
rts
ATOMIC_OP_ALIAS(atomic_and_32,_atomic_and_32)
@@ -47,10 +47,10 @@
STRONG_ALIAS(_atomic_and_ptr,_atomic_and_32)
ENTRY(_atomic_and_32_nv)
- movl %sp@(4), %a0
-1: movl %a0@, %d0
+ movl 4(%sp), %a0
+1: movl (%a0), %d0
movl %d0, %d1
- andl %sp@(8), %d0
+ andl 8(%sp), %d0
casl %d1, %d0, %a0@
bne 1b
rts
diff -r 2042e455f465 -r dd0a7ce3ace2 common/lib/libc/arch/m68k/atomic/atomic_cas.S
--- a/common/lib/libc/arch/m68k/atomic/atomic_cas.S Tue Jul 16 20:17:06 2013 +0000
+++ b/common/lib/libc/arch/m68k/atomic/atomic_cas.S Tue Jul 16 20:49:41 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atomic_cas.S,v 1.5 2008/05/25 15:56:11 chs Exp $ */
+/* $NetBSD: atomic_cas.S,v 1.6 2013/07/16 20:49:41 matt Exp $ */
/*-
* Copyright (c) 2007, 2008 The NetBSD Foundation, Inc.
@@ -34,9 +34,9 @@
.text
ENTRY(_atomic_cas_32)
- movl %sp@(4), %a0
- movl %sp@(8), %d0
- movl %sp@(12), %d1
+ movl 4(%sp), %a0
+ movl 8(%sp), %d0
+ movl 12(%sp), %d1
casl %d0, %d1, %a0@
/* %d0 now contains the old value */
movl %d0, %a0 /* pointers return also in %a0 */
diff -r 2042e455f465 -r dd0a7ce3ace2 common/lib/libc/arch/m68k/atomic/atomic_cas_68000.S
--- a/common/lib/libc/arch/m68k/atomic/atomic_cas_68000.S Tue Jul 16 20:17:06 2013 +0000
+++ b/common/lib/libc/arch/m68k/atomic/atomic_cas_68000.S Tue Jul 16 20:49:41 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atomic_cas_68000.S,v 1.3 2008/05/25 15:56:11 chs Exp $ */
+/* $NetBSD: atomic_cas_68000.S,v 1.4 2013/07/16 20:49:41 matt Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -37,13 +37,13 @@
ENTRY(_atomic_cas_up)
.hidden _C_LABEL(_atomic_cas_up)
- movl %sp@(4), %a0 /* Fetch ptr */
+ movl 4(%sp), %a0 /* Fetch ptr */
RAS_START_ASM_HIDDEN(_atomic_cas)
- movl %a0@, %d0 /* d0 = *ptr */
- cmpl %sp@(8), %d0 /* Same as old? */
+ movl (%a0), %d0 /* d0 = *ptr */
+ cmpl 8(%sp), %d0 /* Same as old? */
jne 1f /* Nope */
- movl %sp@(12), %a0@ /* *ptr = new */
+ movl 12(%sp), (%a0) /* *ptr = new */
RAS_END_ASM_HIDDEN(_atomic_cas)
1: rts
diff -r 2042e455f465 -r dd0a7ce3ace2 common/lib/libc/arch/m68k/atomic/atomic_dec.S
--- a/common/lib/libc/arch/m68k/atomic/atomic_dec.S Tue Jul 16 20:17:06 2013 +0000
+++ b/common/lib/libc/arch/m68k/atomic/atomic_dec.S Tue Jul 16 20:49:41 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atomic_dec.S,v 1.4 2008/05/25 15:56:11 chs Exp $ */
+/* $NetBSD: atomic_dec.S,v 1.5 2013/07/16 20:49:41 matt Exp $ */
/*-
* Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
.text
ENTRY(_atomic_dec_32)
- movl %sp@(4), %a0
+ movl 4(%sp), %a0
subql #1, %a0@
rts
ATOMIC_OP_ALIAS(atomic_dec_32,_atomic_dec_32)
@@ -46,8 +46,8 @@
STRONG_ALIAS(_atomic_dec_ptr,_atomic_dec_32)
ENTRY(_atomic_dec_32_nv)
- movl %sp@(4), %a0
-1: movl %a0@, %d0
+ movl 4(%sp), %a0
+1: movl (%a0), %d0
movl %d0, %d1
subql #1, %d0
casl %d1, %d0, %a0@
diff -r 2042e455f465 -r dd0a7ce3ace2 common/lib/libc/arch/m68k/atomic/atomic_inc.S
--- a/common/lib/libc/arch/m68k/atomic/atomic_inc.S Tue Jul 16 20:17:06 2013 +0000
+++ b/common/lib/libc/arch/m68k/atomic/atomic_inc.S Tue Jul 16 20:49:41 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atomic_inc.S,v 1.4 2008/05/25 15:56:11 chs Exp $ */
+/* $NetBSD: atomic_inc.S,v 1.5 2013/07/16 20:49:41 matt Exp $ */
/*-
* Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
.text
ENTRY(_atomic_inc_32)
- movl %sp@(4), %a0
+ movl 4(%sp), %a0
addql #1, %a0@
rts
ATOMIC_OP_ALIAS(atomic_inc_32,_atomic_inc_32)
@@ -46,8 +46,8 @@
STRONG_ALIAS(_atomic_inc_ptr,_atomic_inc_32)
ENTRY(_atomic_inc_32_nv)
- movl %sp@(4), %a0
-1: movl %a0@, %d0
+ movl 4(%sp), %a0
+1: movl (%a0), %d0
movl %d0, %d1
addql #1, %d0
casl %d1, %d0, %a0@
diff -r 2042e455f465 -r dd0a7ce3ace2 common/lib/libc/arch/m68k/atomic/atomic_or.S
--- a/common/lib/libc/arch/m68k/atomic/atomic_or.S Tue Jul 16 20:17:06 2013 +0000
+++ b/common/lib/libc/arch/m68k/atomic/atomic_or.S Tue Jul 16 20:49:41 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atomic_or.S,v 1.6 2008/05/25 15:56:11 chs Exp $ */
+/* $NetBSD: atomic_or.S,v 1.7 2013/07/16 20:49:41 matt Exp $ */
/*-
* Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -34,8 +34,8 @@
.text
ENTRY(_atomic_or_32)
- movl %sp@(4), %a0
- movl %sp@(8), %d0
+ movl 4(%sp), %a0
+ movl 8(%sp), %d0
orl %d0, %a0@
rts
ATOMIC_OP_ALIAS(atomic_or_32,_atomic_or_32)
@@ -47,10 +47,10 @@
STRONG_ALIAS(_atomic_or_ptr,_atomic_or_32)
ENTRY(_atomic_or_32_nv)
- movl %sp@(4), %a0
-1: movl %a0@, %d0
+ movl 4(%sp), %a0
+1: movl (%a0), %d0
movl %d0, %d1
- orl %sp@(8), %d0
+ orl 8(%sp), %d0
casl %d1, %d0, %a0@
bne 1b
rts
diff -r 2042e455f465 -r dd0a7ce3ace2 common/lib/libc/arch/m68k/atomic/atomic_swap.S
--- a/common/lib/libc/arch/m68k/atomic/atomic_swap.S Tue Jul 16 20:17:06 2013 +0000
+++ b/common/lib/libc/arch/m68k/atomic/atomic_swap.S Tue Jul 16 20:49:41 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atomic_swap.S,v 1.4 2008/05/25 15:56:11 chs Exp $ */
+/* $NetBSD: atomic_swap.S,v 1.5 2013/07/16 20:49:41 matt Exp $ */
/*-
* Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -34,9 +34,9 @@
.text
ENTRY(_atomic_swap_32)
- movl %sp@(4), %a0
-1: movl %a0@, %d0
- movl %sp@(8), %d1
+ movl 4(%sp), %a0
+1: movl (%a0), %d0
+ movl 8(%sp), %d1
casl %d0, %d1, %a0@
bne 1b
/* %d0 now contains the old value */
diff -r 2042e455f465 -r dd0a7ce3ace2 common/lib/libc/arch/m68k/gen/bswap16.S
--- a/common/lib/libc/arch/m68k/gen/bswap16.S Tue Jul 16 20:17:06 2013 +0000
+++ b/common/lib/libc/arch/m68k/gen/bswap16.S Tue Jul 16 20:49:41 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bswap16.S,v 1.2 2007/09/19 20:31:34 he Exp $ */
+/* $NetBSD: bswap16.S,v 1.3 2013/07/16 20:49:41 matt Exp $ */
/*
* Copyright (C) 1996 Scott Reynolds. All rights reserved.
@@ -33,6 +33,6 @@
#else /* defined(_KERNEL) || defined(_STANDALONE) */
_ENTRY(_C_LABEL(__bswap16))
#endif /* defined(_KERNEL) || defined(_STANDALONE) */
- movl %sp@(4),%d0
+ movl 4(%sp),%d0
rolw #8,%d0
rts
diff -r 2042e455f465 -r dd0a7ce3ace2 common/lib/libc/arch/m68k/gen/bswap32.S
--- a/common/lib/libc/arch/m68k/gen/bswap32.S Tue Jul 16 20:17:06 2013 +0000
+++ b/common/lib/libc/arch/m68k/gen/bswap32.S Tue Jul 16 20:49:41 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bswap32.S,v 1.2 2007/09/19 20:31:34 he Exp $ */
+/* $NetBSD: bswap32.S,v 1.3 2013/07/16 20:49:41 matt Exp $ */
/*
* Copyright (C) 1996 Scott Reynolds. All rights reserved.
@@ -33,7 +33,7 @@
#else /* defined(_KERNEL) || defined(_STANDALONE) */
_ENTRY(_C_LABEL(__bswap32))
#endif /* defined(_KERNEL) || defined(_STANDALONE) */
- movl %sp@(4),%d0
+ movl 4(%sp),%d0
rolw #8,%d0
swap %d0
rolw #8,%d0
diff -r 2042e455f465 -r dd0a7ce3ace2 common/lib/libc/arch/m68k/gen/bswap64.S
--- a/common/lib/libc/arch/m68k/gen/bswap64.S Tue Jul 16 20:17:06 2013 +0000
+++ b/common/lib/libc/arch/m68k/gen/bswap64.S Tue Jul 16 20:49:41 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bswap64.S,v 1.1 2005/12/20 19:28:49 christos Exp $ */
+/* $NetBSD: bswap64.S,v 1.2 2013/07/16 20:49:41 matt Exp $ */
/*
* Copyright (C) 1996 Scott Reynolds. All rights reserved.
@@ -29,8 +29,8 @@
#include <machine/asm.h>
ENTRY(bswap64)
- movl %sp@(4),%d1
- movl %sp@(8),%d0
+ movl 4(%sp),%d1
+ movl 8(%sp),%d0
rolw #8,%d1
rolw #8,%d0
swap %d1
diff -r 2042e455f465 -r dd0a7ce3ace2 common/lib/libc/arch/m68k/gen/divsi3.S
--- a/common/lib/libc/arch/m68k/gen/divsi3.S Tue Jul 16 20:17:06 2013 +0000
+++ b/common/lib/libc/arch/m68k/gen/divsi3.S Tue Jul 16 20:49:41 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: divsi3.S,v 1.2 2006/01/05 22:33:34 he Exp $ */
+/* $NetBSD: divsi3.S,v 1.3 2013/07/16 20:49:41 matt Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -39,29 +39,29 @@
#if 0
RCSID("from: @(#)divsi3.s 5.1 (Berkeley) 6/7/90")
#else
- RCSID("$NetBSD: divsi3.S,v 1.2 2006/01/05 22:33:34 he Exp $")
Home |
Main Index |
Thread Index |
Old Index