From 5115869b275b1fa0607164e475e12865818533a0 Mon Sep 17 00:00:00 2001 From: simonb Date: Mon, 9 Dec 2002 23:47:47 +0000 Subject: [PATCH] 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. --- sys/arch/pc532/include/cpufunc.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/arch/pc532/include/cpufunc.h b/sys/arch/pc532/include/cpufunc.h index 1fb9d9bd0e9e..f260159e12ae 100644 --- a/sys/arch/pc532/include/cpufunc.h +++ b/sys/arch/pc532/include/cpufunc.h @@ -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); \