From owner-freebsd-hackers Wed Dec 25 20:34:57 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id UAA06395 for hackers-outgoing; Wed, 25 Dec 1996 20:34:57 -0800 (PST) Received: from edison.ebicom.net (ttsai@Edison.EbiCom.net [205.218.114.2]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id UAA06388 for ; Wed, 25 Dec 1996 20:34:55 -0800 (PST) Received: (from ttsai@localhost) by edison.ebicom.net From: Tim Tsai Message-Id: <199612260434.WAA19053@edison.ebicom.net> Subject: 2.1.6 kernel and pgcc To: freebsd-hackers@freebsd.org Date: Wed, 25 Dec 1996 22:34:52 -0600 (CST) Receipt-To: ttsai@pobox.com Reply-To: ttsai@pobox.com X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk When I tried to compile 2.1.6 kernel with pgcc, I get the following error: ../../i386/clock.c:300: inconsistent operand constraints in an `asm' ../../i386/clock.c:302: inconsistent operand constraints in an `asm' the offending code is: __asm __volatile(".byte 0xf,0x31" : "=A" (last_count)); DELAY(1000000); __asm __volatile(".byte 0xf,0x31" : "=A" (count)); any ideas? I just hard code it to my CPU speed for now. Thanks, Tim