From owner-freebsd-current Mon Nov 8 10: 1:48 1999 Delivered-To: freebsd-current@freebsd.org Received: from lor.watermarkgroup.com (lor.watermarkgroup.com [207.202.73.33]) by hub.freebsd.org (Postfix) with ESMTP id DD04615220; Mon, 8 Nov 1999 10:01:44 -0800 (PST) (envelope-from luoqi@watermarkgroup.com) Received: (from luoqi@localhost) by lor.watermarkgroup.com (8.8.8/8.8.8) id NAA29633; Mon, 8 Nov 1999 13:01:43 -0500 (EST) (envelope-from luoqi) Date: Mon, 8 Nov 1999 13:01:43 -0500 (EST) From: Luoqi Chen Message-Id: <199911081801.NAA29633@lor.watermarkgroup.com> To: garyj@muc.de, obrien@FreeBSD.ORG Subject: Re: show stopper for Gcc 2.95.2 conversion Cc: freebsd-current@FreeBSD.ORG Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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