Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/pc532/include Fix pickier constraints in gcc 3.3. ...



details:   https://anonhg.NetBSD.org/src/rev/d6093ba8788e
branches:  trunk
changeset: 540330:d6093ba8788e
user:      simonb <simonb%NetBSD.org@localhost>
date:      Mon Dec 09 23:47:47 2002 +0000

description:
Fix pickier constraints in gcc 3.3.  Kernels compiled with gcc
"3.3 20021123" (with a small patch from Ian Dall to fix a -O2
problem) and binutils "2.13.90 20021124" now work on the pc532.

diffstat:

 sys/arch/pc532/include/cpufunc.h |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (22 lines):

diff -r aa4ecd6e4641 -r d6093ba8788e sys/arch/pc532/include/cpufunc.h
--- a/sys/arch/pc532/include/cpufunc.h  Mon Dec 09 23:42:53 2002 +0000
+++ b/sys/arch/pc532/include/cpufunc.h  Mon Dec 09 23:47:47 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpufunc.h,v 1.4 1997/04/21 16:16:31 matthias Exp $     */
+/*     $NetBSD: cpufunc.h,v 1.5 2002/12/09 23:47:47 simonb Exp $       */
 
 /*
  * Copyright (c) 1996 Matthias Pfaller.
@@ -83,9 +83,9 @@
        register void *r1 __asm("r1") = from; \
        register void *r2 __asm("r2") = to; \
        __asm __volatile ("movs" type \
-               : "=r" (r1), "=r" (r2) \
-               : "0" (r1), "1" (r2), "r" (r0) \
-               : "r0", "memory" \
+               : "+r" (r0), "+r" (r1), "+r" (r2) \
+               : \
+               : "memory" \
        );
 #define movs_update(type, from, to, n) do { \
                movs(type, from, to, n); \



Home | Main Index | Thread Index | Old Index