Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hp300/include Add register prefixes.



details:   https://anonhg.NetBSD.org/src/rev/b53ea12a6a28
branches:  trunk
changeset: 477645:b53ea12a6a28
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Tue Oct 26 01:49:38 1999 +0000

description:
Add register prefixes.

diffstat:

 sys/arch/hp300/include/bus.h |  218 +++++++++++++++++++++---------------------
 1 files changed, 109 insertions(+), 109 deletions(-)

diffs (truncated from 381 to 300 lines):

diff -r 36f31a4c423f -r b53ea12a6a28 sys/arch/hp300/include/bus.h
--- a/sys/arch/hp300/include/bus.h      Tue Oct 26 00:20:34 1999 +0000
+++ b/sys/arch/hp300/include/bus.h      Tue Oct 26 01:49:38 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bus.h,v 1.2 1999/03/23 21:29:04 drochner Exp $ */
+/*     $NetBSD: bus.h,v 1.3 1999/10/26 01:49:38 thorpej Exp $  */
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -187,43 +187,43 @@
 #define        bus_space_read_multi_1(t, h, o, a, c) do {                      \
        (void) t;                                                       \
        __asm __volatile ("                                             \
-               movl    %0,a0                                   ;       \
-               movl    %1,a1                                   ;       \
-               movl    %2,d0                                   ;       \
-       1:      movb    a0@,a1@+                                ;       \
-               subql   #1,d0                                   ;       \
+               movl    %0,%%a0                                 ;       \
+               movl    %1,%%a1                                 ;       \
+               movl    %2,%%d0                                 ;       \
+       1:      movb    %%a0@,%%a1@+                            ;       \
+               subql   #1,%%d0                                 ;       \
                jne     1b"                                     :       \
                                                                :       \
                    "r" ((h) + (o)), "g" (a), "g" (c)           :       \
-                   "a0","a1","d0");                                    \
+                   "%a0","%a1","%d0");                                 \
 } while (0)
 
 #define        bus_space_read_multi_2(t, h, o, a, c) do {                      \
        (void) t;                                                       \
        __asm __volatile ("                                             \
-               movl    %0,a0                                   ;       \
-               movl    %1,a1                                   ;       \
-               movl    %2,d0                                   ;       \
-       1:      movw    a0@,a1@+                                ;       \
-               subql   #1,d0                                   ;       \
+               movl    %0,%%a0                                 ;       \
+               movl    %1,%%a1                                 ;       \
+               movl    %2,%%d0                                 ;       \
+       1:      movw    %%a0@,%%a1@+                            ;       \
+               subql   #1,%%d0                                 ;       \
                jne     1b"                                     :       \
                                                                :       \
                    "r" ((h) + (o)), "g" (a), "g" (c)           :       \
-                   "a0","a1","d0");                                    \
+                   "%a0","%a1","%d0");                                 \
 } while (0)
 
 #define        bus_space_read_multi_4(t, h, o, a, c) do {                      \
        (void) t;                                                       \
        __asm __volatile ("                                             \
-               movl    %0,a0                                   ;       \
-               movl    %1,a1                                   ;       \
-               movl    %2,d0                                   ;       \
-       1:      movl    a0@,a1@+                                ;       \
-               subql   #1,d0                                   ;       \
+               movl    %0,%%a0                                 ;       \
+               movl    %1,%%a1                                 ;       \
+               movl    %2,%%d0                                 ;       \
+       1:      movl    %%a0@,%%a1@+                            ;       \
+               subql   #1,%%d0                                 ;       \
                jne     1b"                                     :       \
                                                                :       \
                    "r" ((h) + (o)), "g" (a), "g" (c)           :       \
-                   "a0","a1","d0");                                    \
+                   "%a0","%a1","%d0");                                 \
 } while (0)
 
 #if 0  /* Cause a link error for bus_space_read_multi_8 */
@@ -243,43 +243,43 @@
 #define        bus_space_read_region_1(t, h, o, a, c) do {                     \
        (void) t;                                                       \
        __asm __volatile ("                                             \
-               movl    %0,a0                                   ;       \
-               movl    %1,a1                                   ;       \
-               movl    %2,d0                                   ;       \
-       1:      movb    a0@+,a1@+                               ;       \
-               subql   #1,d0                                   ;       \
+               movl    %0,%%a0                                 ;       \
+               movl    %1,%%a1                                 ;       \
+               movl    %2,%%d0                                 ;       \
+       1:      movb    %%a0@+,%%a1@+                           ;       \
+               subql   #1,%%d0                                 ;       \
                jne     1b"                                     :       \
                                                                :       \
                    "r" ((h) + (o)), "g" (a), "g" (c)           :       \
-                   "a0","a1","d0");                                    \
+                   "%a0","%a1","%d0");                                 \
 } while (0)
 
 #define        bus_space_read_region_2(t, h, o, a, c) do {                     \
        (void) t;                                                       \
        __asm __volatile ("                                             \
-               movl    %0,a0                                   ;       \
-               movl    %1,a1                                   ;       \
-               movl    %2,d0                                   ;       \
-       1:      movw    a0@+,a1@+                               ;       \
-               subql   #1,d0                                   ;       \
+               movl    %0,%%a0                                 ;       \
+               movl    %1,%%a1                                 ;       \
+               movl    %2,%%d0                                 ;       \
+       1:      movw    %%a0@+,%%a1@+                           ;       \
+               subql   #1,%%d0                                 ;       \
                jne     1b"                                     :       \
                                                                :       \
                    "r" ((h) + (o)), "g" (a), "g" (c)           :       \
-                   "a0","a1","d0");                                    \
+                   "%a0","%a1","%d0");                                 \
 } while (0)
 
 #define        bus_space_read_region_4(t, h, o, a, c) do {                     \
        (void) t;                                                       \
        __asm __volatile ("                                             \
-               movl    %0,a0                                   ;       \
-               movl    %1,a1                                   ;       \
-               movl    %2,d0                                   ;       \
-       1:      movl    a0@+,a1@+                               ;       \
-               subql   #1,d0                                   ;       \
+               movl    %0,%%a0                                 ;       \
+               movl    %1,%%a1                                 ;       \
+               movl    %2,%%d0                                 ;       \
+       1:      movl    %%a0@+,%%a1@+                           ;       \
+               subql   #1,%%d0                                 ;       \
                jne     1b"                                     :       \
                                                                :       \
                    "r" ((h) + (o)), "g" (a), "g" (c)           :       \
-                   "a0","a1","d0");                                    \
+                   "%a0","%a1","%d0");                                 \
 } while (0)
 
 #if 0  /* Cause a link error for bus_space_read_region_8 */
@@ -320,43 +320,43 @@
 #define        bus_space_write_multi_1(t, h, o, a, c) do {                     \
        (void) t;                                                       \
        __asm __volatile ("                                             \
-               movl    %0,a0                                   ;       \
-               movl    %1,a1                                   ;       \
-               movl    %2,d0                                   ;       \
-       1:      movb    a1@+,a0@                                ;       \
-               subql   #1,d0                                   ;       \
+               movl    %0,%%a0                                 ;       \
+               movl    %1,%%a1                                 ;       \
+               movl    %2,%%d0                                 ;       \
+       1:      movb    %%a1@+,%%a0@                            ;       \
+               subql   #1,%%d0                                 ;       \
                jne     1b"                                     :       \
                                                                :       \
                    "r" ((h) + (o)), "g" (a), "g" (c)           :       \
-                   "a0","a1","d0");                                    \
+                   "%a0","%a1","%d0");                                 \
 } while (0)
 
 #define        bus_space_write_multi_2(t, h, o, a, c) do {                     \
        (void) t;                                                       \
        __asm __volatile ("                                             \
-               movl    %0,a0                                   ;       \
-               movl    %1,a1                                   ;       \
-               movl    %2,d0                                   ;       \
-       1:      movw    a1@+,a0@                                ;       \
-               subql   #1,d0                                   ;       \
+               movl    %0,%%a0                                 ;       \
+               movl    %1,%%a1                                 ;       \
+               movl    %2,%%d0                                 ;       \
+       1:      movw    %%a1@+,%%a0@                            ;       \
+               subql   #1,%%d0                                 ;       \
                jne     1b"                                     :       \
                                                                :       \
                    "r" ((h) + (o)), "g" (a), "g" (c)           :       \
-                   "a0","a1","d0");                                    \
+                   "%a0","%a1","%d0");                                 \
 } while (0)
 
 #define        bus_space_write_multi_4(t, h, o, a, c) do {                     \
        (void) t;                                                       \
        __asm __volatile ("                                             \
-               movl    %0,a0                                   ;       \
-               movl    %1,a1                                   ;       \
-               movl    %2,d0                                   ;       \
-       1:      movl    a1@+,a0@                                ;       \
-               subql   #1,d0                                   ;       \
+               movl    %0,%%a0                                 ;       \
+               movl    %1,%%a1                                 ;       \
+               movl    %2,%%d0                                 ;       \
+       1:      movl    %%a1@+,%%a0@                            ;       \
+               subql   #1,%%d0                                 ;       \
                jne     1b"                                     :       \
                                                                :       \
                    "r" ((h) + (o)), "g" (a), "g" (c)           :       \
-                   "a0","a1","d0");                                    \
+                   "%a0","%a1","%d0");                                 \
 } while (0)
 
 #if 0  /* Cause a link error for bus_space_write_8 */
@@ -376,43 +376,43 @@
 #define        bus_space_write_region_1(t, h, o, a, c) do {                    \
        (void) t;                                                       \
        __asm __volatile ("                                             \
-               movl    %0,a0                                   ;       \
-               movl    %1,a1                                   ;       \
-               movl    %2,d0                                   ;       \
-       1:      movb    a1@+,a0@+                               ;       \
-               subql   #1,d0                                   ;       \
+               movl    %0,%%a0                                 ;       \
+               movl    %1,%%a1                                 ;       \
+               movl    %2,%%d0                                 ;       \
+       1:      movb    %%a1@+,%%a0@+                           ;       \
+               subql   #1,%%d0                                 ;       \
                jne     1b"                                     :       \
                                                                :       \
                    "r" ((h) + (o)), "g" (a), "g" (c)           :       \
-                   "a0","a1","d0");                                    \
+                   "%a0","%a1","%d0");                                 \
 } while (0)
 
 #define        bus_space_write_region_2(t, h, o, a, c) do {                    \
        (void) t;                                                       \
        __asm __volatile ("                                             \
-               movl    %0,a0                                   ;       \
-               movl    %1,a1                                   ;       \
-               movl    %2,d0                                   ;       \
-       1:      movw    a1@+,a0@+                               ;       \
-               subql   #1,d0                                   ;       \
+               movl    %0,%%a0                                 ;       \
+               movl    %1,%%a1                                 ;       \
+               movl    %2,%%d0                                 ;       \
+       1:      movw    %%a1@+,%%a0@+                           ;       \
+               subql   #1,%%d0                                 ;       \
                jne     1b"                                     :       \
                                                                :       \
                    "r" ((h) + (o)), "g" (a), "g" (c)           :       \
-                   "a0","a1","d0");                                    \
+                   "%a0","%a1","%d0");                                 \
 } while (0)
 
 #define        bus_space_write_region_4(t, h, o, a, c) do {                    \
        (void) t;                                                       \
        __asm __volatile ("                                             \
-               movl    %0,a0                                   ;       \
-               movl    %1,a1                                   ;       \
-               movl    %2,d0                                   ;       \
-       1:      movl    a1@+,a0@+                               ;       \
-               subql   #1,d0                                   ;       \
+               movl    %0,%%a0                                 ;       \
+               movl    %1,%%a1                                 ;       \
+               movl    %2,%%d0                                 ;       \
+       1:      movl    %%a1@+,%%a0@+                           ;       \
+               subql   #1,%%d0                                 ;       \
                jne     1b"                                     :       \
                                                                :       \
                    "r" ((h) + (o)), "g" (a), "g" (c)           :       \
-                   "a0","a1","d0");                                    \
+                   "%a0","%a1","%d0");                                 \
 } while (0)
 
 #if 0  /* Cause a link error for bus_space_write_region_8 */
@@ -432,43 +432,43 @@
 #define        bus_space_set_multi_1(t, h, o, val, c) do {                     \
        (void) t;                                                       \
        __asm __volatile ("                                             \
-               movl    %0,a0                                   ;       \
-               movl    %1,d1                                   ;       \
-               movl    %2,d0                                   ;       \
-       1:      movb    d1,a0@                                  ;       \
-               subql   #1,d0                                   ;       \
+               movl    %0,%%a0                                 ;       \
+               movl    %1,%%d1                                 ;       \
+               movl    %2,%%d0                                 ;       \
+       1:      movb    %%d1,%%a0@                              ;       \
+               subql   #1,%%d0                                 ;       \
                jne     1b"                                     :       \
                                                                :       \
                    "r" ((h) + (o)), "g" (val), "g" (c)         :       \
-                   "a0","d0","d1");                                    \
+                   "%a0","%d0","%d1");                                 \
 } while (0)
 
 #define        bus_space_set_multi_2(t, h, o, val, c) do {                     \
        (void) t;                                                       \
        __asm __volatile ("                                             \
-               movl    %0,a0                                   ;       \
-               movl    %1,d1                                   ;       \
-               movl    %2,d0                                   ;       \
-       1:      movw    d1,a0@                                  ;       \
-               subql   #1,d0                                   ;       \
+               movl    %0,%%a0                                 ;       \
+               movl    %1,%%d1                                 ;       \
+               movl    %2,%%d0                                 ;       \
+       1:      movw    %%d1,%%a0@                              ;       \
+               subql   #1,%%d0                                 ;       \
                jne     1b"                                     :       \
                                                                :       \
                    "r" ((h) + (o)), "g" (val), "g" (c)         :       \
-                   "a0","d0","d1");                                    \
+                   "%a0","%d0","%d1");                                 \
 } while (0)
 
 #define        bus_space_set_multi_4(t, h, o, val, c) do {                     \
        (void) t;                                                       \



Home | Main Index | Thread Index | Old Index