Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/prep/stand/boot In the delay loop, mark the scratch...



details:   https://anonhg.NetBSD.org/src/rev/688eaa354237
branches:  trunk
changeset: 567824:688eaa354237
user:      kleink <kleink%NetBSD.org@localhost>
date:      Tue Jun 29 16:26:05 2004 +0000

description:
In the delay loop, mark the scratch register as earlyclobber.

diffstat:

 sys/arch/prep/stand/boot/clock.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r f7e44ffd74a9 -r 688eaa354237 sys/arch/prep/stand/boot/clock.c
--- a/sys/arch/prep/stand/boot/clock.c  Tue Jun 29 16:21:16 2004 +0000
+++ b/sys/arch/prep/stand/boot/clock.c  Tue Jun 29 16:26:05 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: clock.c,v 1.4 2002/03/26 00:03:47 kleink Exp $ */
+/*     $NetBSD: clock.c,v 1.5 2004/06/29 16:26:05 kleink Exp $ */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -94,7 +94,7 @@
                }
                __asm __volatile ("1: mfspr %0,%3; cmplw %0,%1; blt 1b; bgt 2f;"
                    "mfspr %0,%4; cmplw %0,%2; blt 1b; 2:"
-                   : "=r"(scratch)
+                   : "=&r"(scratch)
                    : "r"(tbh), "r"(tbl), "n"(SPR_RTCU_R), "n"(SPR_RTCL_R));
        } else {
                tb = mftb();
@@ -103,7 +103,7 @@
                tbl = tb;
                __asm __volatile ("1: mftbu %0; cmpw %0,%1; blt 1b; bgt 2f;"
                                  "mftb %0; cmpw %0,%2; blt 1b; 2:"
-                                 : "=r"(scratch)
+                                 : "=&r"(scratch)
                                  : "r"(tbh), "r"(tbl));
        }
 }



Home | Main Index | Thread Index | Old Index