Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/powerpc Use "b" constraint for base registe...



details:   https://anonhg.NetBSD.org/src/rev/7b7ad5a39428
branches:  trunk
changeset: 535479:7b7ad5a39428
user:      matt <matt%NetBSD.org@localhost>
date:      Tue Aug 20 06:04:38 2002 +0000

description:
Use "b" constraint for base registers (indexed addressing mode).

diffstat:

 sys/arch/powerpc/powerpc/pmap_subr.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (38 lines):

diff -r 1cdd1b61d4ec -r 7b7ad5a39428 sys/arch/powerpc/powerpc/pmap_subr.c
--- a/sys/arch/powerpc/powerpc/pmap_subr.c      Tue Aug 20 04:22:03 2002 +0000
+++ b/sys/arch/powerpc/powerpc/pmap_subr.c      Tue Aug 20 06:04:38 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap_subr.c,v 1.5 2002/08/18 19:18:33 matt Exp $       */
+/*     $NetBSD: pmap_subr.c,v 1.6 2002/08/20 06:04:38 matt Exp $       */
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -157,8 +157,8 @@
        } else {
                size_t i = 0;
                do {
-                       __asm ("dcbz %0,%1" :: "r"(pa), "r"(i)); i += linewidth;
-                       __asm ("dcbz %0,%1" :: "r"(pa), "r"(i)); i += linewidth;
+                       __asm ("dcbz %0,%1" :: "b"(pa), "r"(i)); i += linewidth;
+                       __asm ("dcbz %0,%1" :: "b"(pa), "r"(i)); i += linewidth;
                } while (i < NBPG);
        }
 
@@ -274,7 +274,7 @@
         */
        i = 0;
        do {
-               __asm ("dcbst %0,%1" :: "r"(pa), "r"(i)); i += linewidth;
+               __asm ("dcbst %0,%1" :: "b"(pa), "r"(i)); i += linewidth;
        } while (i < len);
 
        /*
@@ -287,7 +287,7 @@
         */
        i = 0;
        do {
-               __asm ("icbi %0,%1" :: "r"(pa), "r"(i)); i += linewidth;
+               __asm ("icbi %0,%1" :: "b"(pa), "r"(i)); i += linewidth;
        } while (i < len);
 
        /*



Home | Main Index | Thread Index | Old Index