Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/powerpc/include No newlines in string constants.



details:   https://anonhg.NetBSD.org/src/rev/49f5f5743c64
branches:  trunk
changeset: 539712:49f5f5743c64
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon Nov 25 01:36:35 2002 +0000

description:
No newlines in string constants.

diffstat:

 sys/arch/powerpc/include/atomic.h |  80 +++++++++++++++++++-------------------
 1 files changed, 40 insertions(+), 40 deletions(-)

diffs (122 lines):

diff -r d1a58441f392 -r 49f5f5743c64 sys/arch/powerpc/include/atomic.h
--- a/sys/arch/powerpc/include/atomic.h Mon Nov 25 01:33:51 2002 +0000
+++ b/sys/arch/powerpc/include/atomic.h Mon Nov 25 01:36:35 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atomic.h,v 1.1 2002/07/28 07:09:28 chs Exp $ */
+/* $NetBSD: atomic.h,v 1.2 2002/11/25 01:36:35 thorpej Exp $ */
 
 /*-
  */
@@ -20,14 +20,14 @@
 {
        unsigned long tmp;
 
-       __asm __volatile("
-# BEGIN atomic_setbits_ulong   \n\
-1:     lwarx   %0,0,%2         \n\
-       or      %0,%1,%0        \n\
-       stwcx.  %0,0,%2         \n\
-       bne-    1b              \n\
-       sync                    \n\
-# END atomic_setbits_ulong     \n"
+       __asm __volatile(
+"# BEGIN atomic_setbits_ulong  \n"
+"1:    lwarx   %0,0,%2         \n"
+"      or      %0,%1,%0        \n"
+"      stwcx.  %0,0,%2         \n"
+"      bne-    1b              \n"
+"      sync                    \n"
+"# END atomic_setbits_ulong    \n"
        : "=&r" (tmp)
        : "r" (v), "r" (ulp)
        : "memory");
@@ -43,14 +43,14 @@
 {
        unsigned long tmp;
 
-       __asm __volatile("
-# BEGIN atomic_clearbits_ulong \n\
-1:     lwarx   %0,0,%2         \n\
-       and     %0,%1,%0        \n\
-       stwcx.  %0,0,%2         \n\
-       bne-    1b              \n\
-       sync                    \n\
-# END atomic_clearbits_ulong   \n"
+       __asm __volatile(
+"# BEGIN atomic_clearbits_ulong        \n"
+"1:    lwarx   %0,0,%2         \n"
+"      and     %0,%1,%0        \n"
+"      stwcx.  %0,0,%2         \n"
+"      bne-    1b              \n"
+"      sync                    \n"
+"# END atomic_clearbits_ulong  \n"
        : "=&r" (tmp)
        : "r" (~v), "r" (ulp)
        : "memory");
@@ -66,14 +66,14 @@
 {
        unsigned long tmp;
 
-       __asm __volatile("
-# BEGIN atomic_add_ulong       \n\
-1:     lwarx   %0,0,%2         \n\
-       add     %0,%1,%0        \n\
-       stwcx.  %0,0,%2         \n\
-       bne-    1b              \n\
-       sync                    \n\
-# END atomic_add_ulong         \n"
+       __asm __volatile(
+"# BEGIN atomic_add_ulong      \n"
+"1:    lwarx   %0,0,%2         \n"
+"      add     %0,%1,%0        \n"
+"      stwcx.  %0,0,%2         \n"
+"      bne-    1b              \n"
+"      sync                    \n"
+"# END atomic_add_ulong                \n"
        : "=&r" (tmp)
        : "r" (v), "r" (ulp)
        : "memory");
@@ -89,14 +89,14 @@
 {
        unsigned long tmp;
 
-       __asm __volatile("
-# BEGIN atomic_sub_ulong       \n\
-1:     lwarx   %0,0,%2         \n\
-       sub     %0,%0,%1        \n\
-       stwcx.  %0,0,%2         \n\
-       bne-    1b              \n\
-       sync                    \n\
-# END atomic_sub_ulong         \n"
+       __asm __volatile(
+"# BEGIN atomic_sub_ulong      \n"
+"1:    lwarx   %0,0,%2         \n"
+"      sub     %0,%0,%1        \n"
+"      stwcx.  %0,0,%2         \n"
+"      bne-    1b              \n"
+"      sync                    \n"
+"# END atomic_sub_ulong                \n"
        : "=&r" (tmp)
        : "r" (v), "r" (ulp)
        : "memory");
@@ -112,13 +112,13 @@
 {
        unsigned long tmp;
 
-       __asm __volatile("
-# BEGIN atomic_loadlatch_ulong \n\
-1:     lwarx   %0,0,%2         \n\
-       stwcx.  %1,0,%2         \n\
-       bne-    1b              \n\
-       sync                    \n\
-# END atomic_loadlatch_ulong   \n"
+       __asm __volatile(
+"# BEGIN atomic_loadlatch_ulong        \n"
+"1:    lwarx   %0,0,%2         \n"
+"      stwcx.  %1,0,%2         \n"
+"      bne-    1b              \n"
+"      sync                    \n"
+"# END atomic_loadlatch_ulong  \n"
        : "=r" (tmp)
        : "r" (v), "r" (ulp)
        : "memory");



Home | Main Index | Thread Index | Old Index