Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Nov 1998 23:35:15 -0800 (PST)
From:      Julian Elischer <julian@whistle.com>
To:        "John S. Dyson" <dyson@iquest.net>
Cc:        Bruce Evans <bde@zeta.org.au>, current@FreeBSD.ORG
Subject:   Re: Fix for incorrect clobbers in asm's
Message-ID:  <Pine.BSF.3.95.981127233449.12108G-100000@current1.whistle.com>
In-Reply-To: <199811280559.AAA04288@y.dyson.net>

next in thread | previous in thread | raw e-mail | index | archive | help
I guess bruce has volunteered to check in his fixes.....


On Sat, 28 Nov 1998, John S. Dyson wrote:

> Bruce Evans said:
> > 
> > Rewritten using constraints:
> > 
> >  	__asm __volatile("cld; rep; insb"
> >  			 : "=D" (addr), "=c" (cnt)
> >  			 : "0"  (addr), "1"  (cnt), "d" (port)
> >  			 : "memory");
> > 
> > This discards the output operands in the input variables to avoid extra
> > local variables.  This is harmless because the input variables are dead,
> > and more natural because it is normal for pointers to be incremented and
> > counts to be decremented.
> > 
> Yes, your specific approach is better.  However, the incorrect clobbers
> do need to be fixed, or compiling kernels with egcs will be forever a pain...
> 
> -- 
> John                  | Never try to teach a pig to sing,
> dyson@iquest.net      | it makes one look stupid
> jdyson@nc.com         | and it irritates the pig.
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-current" in the body of the message
> 


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?Pine.BSF.3.95.981127233449.12108G-100000>