Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Nov 1999 13:01:43 -0500 (EST)
From:      Luoqi Chen <luoqi@watermarkgroup.com>
To:        garyj@muc.de, obrien@FreeBSD.ORG
Cc:        freebsd-current@FreeBSD.ORG
Subject:   Re: show stopper for Gcc 2.95.2 conversion
Message-ID:  <199911081801.NAA29633@lor.watermarkgroup.com>

next in thread | raw e-mail | index | archive | help
> Here is the patch I've been working on (before I 1st got BDE's reply).
> The changes are mostly from OpenBSD + style changes for the way we do
> things.  Can you also test this one?
> 
> 
> Index: bus.h
> ===================================================================
> RCS file: /home/ncvs/src/sys/i386/include/bus.h,v
> retrieving revision 1.6
> diff -u -r1.6 bus.h
> --- bus.h	1999/08/28 00:44:07	1.6
> +++ bus.h	1999/11/06 21:42:15
> @@ -252,15 +252,14 @@
>  	else
>  #endif
>  	{
> -		int __x __asm__("%eax");
>  		__asm __volatile("				\n\
>  			cld					\n\
> -		1:	movb (%1),%%al				\n\
> +		1:	movb (%2),%%al				\n\
>  			stosb					\n\
>  			loop 1b"				:
> -		    "=&a" (__x)					:
> -		    "r" (bsh + offset), "D" (addr), "c" (count)	:
> -		    "%edi", "%ecx", "memory");
> +		    "=D" (addr), "=c" (count)			:
> +		    "r" (bsh + offset), "0" (addr), "1" (count)	:
> +		    "%eax", "memory");
>  	}
>  #endif
>  }
You may use "+D" and "+c" for the in-out operands,
		    "+D" (addr), "+c" (count)			:
		    "r" (bsh + offset)				:

-lq


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199911081801.NAA29633>