From owner-freebsd-mips@FreeBSD.ORG Sun Feb 21 04:05:43 2010 Return-Path: Delivered-To: mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4B8A5106566C; Sun, 21 Feb 2010 04:05:43 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by mx1.freebsd.org (Postfix) with ESMTP id E906D8FC08; Sun, 21 Feb 2010 04:05:42 +0000 (UTC) Received: from freebsd-current.sentex.ca (localhost [127.0.0.1]) by freebsd-current.sentex.ca (8.14.3/8.14.3) with ESMTP id o1L45gDu008687; Sat, 20 Feb 2010 23:05:42 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-current.sentex.ca (8.14.3/8.14.3/Submit) id o1L45ggX008680; Sun, 21 Feb 2010 04:05:42 GMT (envelope-from tinderbox@freebsd.org) Date: Sun, 21 Feb 2010 04:05:42 GMT Message-Id: <201002210405.o1L45ggX008680@freebsd-current.sentex.ca> X-Authentication-Warning: freebsd-current.sentex.ca: tinderbox set sender to FreeBSD Tinderbox using -f Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Cc: Subject: [head tinderbox] failure on mips/mips X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Feb 2010 04:05:43 -0000 TB --- 2010-02-21 03:38:18 - tinderbox 2.6 running on freebsd-current.sentex.ca TB --- 2010-02-21 03:38:18 - starting HEAD tinderbox run for mips/mips TB --- 2010-02-21 03:38:18 - cleaning the object tree TB --- 2010-02-21 03:38:26 - cvsupping the source tree TB --- 2010-02-21 03:38:26 - /usr/bin/csup -z -r 3 -g -L 1 -h cvsup.sentex.ca /tinderbox/HEAD/mips/mips/supfile TB --- 2010-02-21 03:38:53 - building world TB --- 2010-02-21 03:38:53 - MAKEOBJDIRPREFIX=/obj TB --- 2010-02-21 03:38:53 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2010-02-21 03:38:53 - TARGET=mips TB --- 2010-02-21 03:38:53 - TARGET_ARCH=mips TB --- 2010-02-21 03:38:53 - TZ=UTC TB --- 2010-02-21 03:38:53 - __MAKE_CONF=/dev/null TB --- 2010-02-21 03:38:53 - cd /src TB --- 2010-02-21 03:38:53 - /usr/bin/make -B buildworld >>> World build started on Sun Feb 21 03:38:54 UTC 2010 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies [...] Hunk #2 succeeded at 51. done yacc -d -o jv-exp.c /src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/jv-exp.y yacc -d -o m2-exp.c /src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/m2-exp.y yacc -d -o objc-exp.c /src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/objc-exp.y yacc: 5 shift/reduce conflicts yacc -d -o p-exp.c /src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/p-exp.y make: don't know how to make mipsfbsd-nat.c. Stop *** Error code 2 Stop in /src/gnu/usr.bin/gdb. *** Error code 1 Stop in /src/gnu/usr.bin. *** Error code 1 Stop in /src/gnu. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2010-02-21 04:05:42 - WARNING: /usr/bin/make returned exit code 1 TB --- 2010-02-21 04:05:42 - ERROR: failed to build world TB --- 2010-02-21 04:05:42 - 1108.92 user 295.22 system 1643.80 real http://tinderbox.freebsd.org/tinderbox-head-HEAD-mips-mips.full From owner-freebsd-mips@FreeBSD.ORG Sun Feb 21 05:54:21 2010 Return-Path: Delivered-To: mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1A4C3106566C; Sun, 21 Feb 2010 05:54:21 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id B28198FC0A; Sun, 21 Feb 2010 05:54:20 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id o1L5nRrV007310; Sat, 20 Feb 2010 22:49:27 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Sat, 20 Feb 2010 22:49:37 -0700 (MST) Message-Id: <20100220.224937.578650865205816096.imp@bsdimp.com> To: rrs@freebsd.org From: "M. Warner Losh" In-Reply-To: <201002210405.o1L45ggX008680@freebsd-current.sentex.ca> References: <201002210405.o1L45ggX008680@freebsd-current.sentex.ca> X-Mailer: Mew version 6.3 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: mips@freebsd.org, current@freebsd.org Subject: Re: [head tinderbox] failure on mips/mips X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Feb 2010 05:54:21 -0000 Maybe a forgotten svn add for mipsfbsd-nat.c? Warner In message: <201002210405.o1L45ggX008680@freebsd-current.sentex.ca> FreeBSD Tinderbox writes: : TB --- 2010-02-21 03:38:18 - tinderbox 2.6 running on freebsd-current.sentex.ca : TB --- 2010-02-21 03:38:18 - starting HEAD tinderbox run for mips/mips : TB --- 2010-02-21 03:38:18 - cleaning the object tree : TB --- 2010-02-21 03:38:26 - cvsupping the source tree : TB --- 2010-02-21 03:38:26 - /usr/bin/csup -z -r 3 -g -L 1 -h cvsup.sentex.ca /tinderbox/HEAD/mips/mips/supfile : TB --- 2010-02-21 03:38:53 - building world : TB --- 2010-02-21 03:38:53 - MAKEOBJDIRPREFIX=/obj : TB --- 2010-02-21 03:38:53 - PATH=/usr/bin:/usr/sbin:/bin:/sbin : TB --- 2010-02-21 03:38:53 - TARGET=mips : TB --- 2010-02-21 03:38:53 - TARGET_ARCH=mips : TB --- 2010-02-21 03:38:53 - TZ=UTC : TB --- 2010-02-21 03:38:53 - __MAKE_CONF=/dev/null : TB --- 2010-02-21 03:38:53 - cd /src : TB --- 2010-02-21 03:38:53 - /usr/bin/make -B buildworld : >>> World build started on Sun Feb 21 03:38:54 UTC 2010 : >>> Rebuilding the temporary build tree : >>> stage 1.1: legacy release compatibility shims : >>> stage 1.2: bootstrap tools : >>> stage 2.1: cleaning up the object tree : >>> stage 2.2: rebuilding the object tree : >>> stage 2.3: build tools : >>> stage 3: cross tools : >>> stage 4.1: building includes : >>> stage 4.2: building libraries : >>> stage 4.3: make dependencies : [...] : Hunk #2 succeeded at 51. : done : yacc -d -o jv-exp.c /src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/jv-exp.y : yacc -d -o m2-exp.c /src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/m2-exp.y : yacc -d -o objc-exp.c /src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/objc-exp.y : yacc: 5 shift/reduce conflicts : yacc -d -o p-exp.c /src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/p-exp.y : make: don't know how to make mipsfbsd-nat.c. Stop : *** Error code 2 : : Stop in /src/gnu/usr.bin/gdb. : *** Error code 1 : : Stop in /src/gnu/usr.bin. : *** Error code 1 : : Stop in /src/gnu. : *** Error code 1 : : Stop in /src. : *** Error code 1 : : Stop in /src. : *** Error code 1 : : Stop in /src. : TB --- 2010-02-21 04:05:42 - WARNING: /usr/bin/make returned exit code 1 : TB --- 2010-02-21 04:05:42 - ERROR: failed to build world : TB --- 2010-02-21 04:05:42 - 1108.92 user 295.22 system 1643.80 real : : : http://tinderbox.freebsd.org/tinderbox-head-HEAD-mips-mips.full : _______________________________________________ : freebsd-mips@freebsd.org mailing list : http://lists.freebsd.org/mailman/listinfo/freebsd-mips : To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org" : : From owner-freebsd-mips@FreeBSD.ORG Sun Feb 21 14:25:01 2010 Return-Path: Delivered-To: mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DA3EE106566B; Sun, 21 Feb 2010 14:25:01 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by mx1.freebsd.org (Postfix) with ESMTP id 854798FC15; Sun, 21 Feb 2010 14:25:00 +0000 (UTC) Received: from freebsd-current.sentex.ca (localhost [127.0.0.1]) by freebsd-current.sentex.ca (8.14.3/8.14.3) with ESMTP id o1LEOx85073668; Sun, 21 Feb 2010 09:24:59 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-current.sentex.ca (8.14.3/8.14.3/Submit) id o1LEOxtZ073652; Sun, 21 Feb 2010 14:24:59 GMT (envelope-from tinderbox@freebsd.org) Date: Sun, 21 Feb 2010 14:24:59 GMT Message-Id: <201002211424.o1LEOxtZ073652@freebsd-current.sentex.ca> X-Authentication-Warning: freebsd-current.sentex.ca: tinderbox set sender to FreeBSD Tinderbox using -f Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Cc: Subject: [head tinderbox] failure on mips/mips X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Feb 2010 14:25:02 -0000 TB --- 2010-02-21 13:58:04 - tinderbox 2.6 running on freebsd-current.sentex.ca TB --- 2010-02-21 13:58:04 - starting HEAD tinderbox run for mips/mips TB --- 2010-02-21 13:58:04 - cleaning the object tree TB --- 2010-02-21 13:58:08 - cvsupping the source tree TB --- 2010-02-21 13:58:08 - /usr/bin/csup -z -r 3 -g -L 1 -h cvsup.sentex.ca /tinderbox/HEAD/mips/mips/supfile TB --- 2010-02-21 13:58:35 - building world TB --- 2010-02-21 13:58:35 - MAKEOBJDIRPREFIX=/obj TB --- 2010-02-21 13:58:35 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2010-02-21 13:58:35 - TARGET=mips TB --- 2010-02-21 13:58:35 - TARGET_ARCH=mips TB --- 2010-02-21 13:58:35 - TZ=UTC TB --- 2010-02-21 13:58:35 - __MAKE_CONF=/dev/null TB --- 2010-02-21 13:58:35 - cd /src TB --- 2010-02-21 13:58:35 - /usr/bin/make -B buildworld >>> World build started on Sun Feb 21 13:58:35 UTC 2010 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies [...] Hunk #2 succeeded at 51. done yacc -d -o jv-exp.c /src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/jv-exp.y yacc -d -o m2-exp.c /src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/m2-exp.y yacc -d -o objc-exp.c /src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/objc-exp.y yacc: 5 shift/reduce conflicts yacc -d -o p-exp.c /src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/p-exp.y make: don't know how to make mipsfbsd-nat.c. Stop *** Error code 2 Stop in /src/gnu/usr.bin/gdb. *** Error code 1 Stop in /src/gnu/usr.bin. *** Error code 1 Stop in /src/gnu. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2010-02-21 14:24:59 - WARNING: /usr/bin/make returned exit code 1 TB --- 2010-02-21 14:24:59 - ERROR: failed to build world TB --- 2010-02-21 14:24:59 - 1107.64 user 291.38 system 1615.30 real http://tinderbox.freebsd.org/tinderbox-head-HEAD-mips-mips.full From owner-freebsd-mips@FreeBSD.ORG Sun Feb 21 17:21:08 2010 Return-Path: Delivered-To: mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8000D1065670; Sun, 21 Feb 2010 17:21:08 +0000 (UTC) (envelope-from rrs@lakerest.net) Received: from lakerest.net (unknown [IPv6:2001:240:585:2:213:d4ff:fef3:2d8d]) by mx1.freebsd.org (Postfix) with ESMTP id 1BA508FC1C; Sun, 21 Feb 2010 17:21:08 +0000 (UTC) Received: from [192.168.2.114] (pool-96-249-204-75.snfcca.dsl-w.verizon.net [96.249.204.75]) (authenticated bits=0) by lakerest.net (8.14.3/8.14.3) with ESMTP id o1LHL0D9012630 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Sun, 21 Feb 2010 12:21:03 -0500 (EST) (envelope-from rrs@lakerest.net) Message-Id: <716CF56F-40A5-42F5-AD90-E5F704388A52@lakerest.net> From: Randall Stewart To: "M. Warner Losh" In-Reply-To: <20100220.224937.578650865205816096.imp@bsdimp.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Date: Sun, 21 Feb 2010 09:20:54 -0800 References: <201002210405.o1L45ggX008680@freebsd-current.sentex.ca> <20100220.224937.578650865205816096.imp@bsdimp.com> X-Mailer: Apple Mail (2.936) Cc: mips@freebsd.org, current@freebsd.org Subject: Re: [head tinderbox] failure on mips/mips X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Feb 2010 17:21:08 -0000 Rats.. Yep you are right.. and I was out all day yesterday .. opps.. R On Feb 20, 2010, at 9:49 PM, M. Warner Losh wrote: > Maybe a forgotten svn add for mipsfbsd-nat.c? > > Warner > > In message: <201002210405.o1L45ggX008680@freebsd-current.sentex.ca> > FreeBSD Tinderbox writes: > : TB --- 2010-02-21 03:38:18 - tinderbox 2.6 running on freebsd- > current.sentex.ca > : TB --- 2010-02-21 03:38:18 - starting HEAD tinderbox run for mips/ > mips > : TB --- 2010-02-21 03:38:18 - cleaning the object tree > : TB --- 2010-02-21 03:38:26 - cvsupping the source tree > : TB --- 2010-02-21 03:38:26 - /usr/bin/csup -z -r 3 -g -L 1 -h > cvsup.sentex.ca /tinderbox/HEAD/mips/mips/supfile > : TB --- 2010-02-21 03:38:53 - building world > : TB --- 2010-02-21 03:38:53 - MAKEOBJDIRPREFIX=/obj > : TB --- 2010-02-21 03:38:53 - PATH=/usr/bin:/usr/sbin:/bin:/sbin > : TB --- 2010-02-21 03:38:53 - TARGET=mips > : TB --- 2010-02-21 03:38:53 - TARGET_ARCH=mips > : TB --- 2010-02-21 03:38:53 - TZ=UTC > : TB --- 2010-02-21 03:38:53 - __MAKE_CONF=/dev/null > : TB --- 2010-02-21 03:38:53 - cd /src > : TB --- 2010-02-21 03:38:53 - /usr/bin/make -B buildworld > : >>> World build started on Sun Feb 21 03:38:54 UTC 2010 > : >>> Rebuilding the temporary build tree > : >>> stage 1.1: legacy release compatibility shims > : >>> stage 1.2: bootstrap tools > : >>> stage 2.1: cleaning up the object tree > : >>> stage 2.2: rebuilding the object tree > : >>> stage 2.3: build tools > : >>> stage 3: cross tools > : >>> stage 4.1: building includes > : >>> stage 4.2: building libraries > : >>> stage 4.3: make dependencies > : [...] > : Hunk #2 succeeded at 51. > : done > : yacc -d -o jv-exp.c /src/gnu/usr.bin/gdb/libgdb/../../../../ > contrib/gdb/gdb/jv-exp.y > : yacc -d -o m2-exp.c /src/gnu/usr.bin/gdb/libgdb/../../../../ > contrib/gdb/gdb/m2-exp.y > : yacc -d -o objc-exp.c /src/gnu/usr.bin/gdb/libgdb/../../../../ > contrib/gdb/gdb/objc-exp.y > : yacc: 5 shift/reduce conflicts > : yacc -d -o p-exp.c /src/gnu/usr.bin/gdb/libgdb/../../../../contrib/ > gdb/gdb/p-exp.y > : make: don't know how to make mipsfbsd-nat.c. Stop > : *** Error code 2 > : > : Stop in /src/gnu/usr.bin/gdb. > : *** Error code 1 > : > : Stop in /src/gnu/usr.bin. > : *** Error code 1 > : > : Stop in /src/gnu. > : *** Error code 1 > : > : Stop in /src. > : *** Error code 1 > : > : Stop in /src. > : *** Error code 1 > : > : Stop in /src. > : TB --- 2010-02-21 04:05:42 - WARNING: /usr/bin/make returned exit > code 1 > : TB --- 2010-02-21 04:05:42 - ERROR: failed to build world > : TB --- 2010-02-21 04:05:42 - 1108.92 user 295.22 system 1643.80 real > : > : > : http://tinderbox.freebsd.org/tinderbox-head-HEAD-mips-mips.full > : _______________________________________________ > : freebsd-mips@freebsd.org mailing list > : http://lists.freebsd.org/mailman/listinfo/freebsd-mips > : To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org > " > : > : > _______________________________________________ > freebsd-mips@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-mips > To unsubscribe, send any mail to "freebsd-mips- > unsubscribe@freebsd.org" > ------------------------------ Randall Stewart 803-317-4952 (cell) 803-345-0391(direct) From owner-freebsd-mips@FreeBSD.ORG Tue Feb 23 08:22:08 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ED67B106568B for ; Tue, 23 Feb 2010 08:22:08 +0000 (UTC) (envelope-from c.jayachandran@gmail.com) Received: from mail-px0-f176.google.com (mail-px0-f176.google.com [209.85.216.176]) by mx1.freebsd.org (Postfix) with ESMTP id C5BB38FC1D for ; Tue, 23 Feb 2010 08:22:08 +0000 (UTC) Received: by pxi6 with SMTP id 6so1906986pxi.14 for ; Tue, 23 Feb 2010 00:21:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:cc:content-type; bh=3ENE6mMX23qWJ+zejLEVvgTk4YGbIBMv267cBksGrCg=; b=J3sETC+JARaSVSuEMfiKpcAozZkVhSv5/kKn6+pGajVkccEg9g6dBdmvZRwju9mO0Y Ds28ipSdOmO95Z4hPJ0gNXFOmfVEvkoVJ4vK9R7pfwbSWTE8pe0Zp9uwmjeqVNwyolHJ mzRNiHUvbUZri16x4RNP8713TrXO7vqnBJdSU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; b=de8L2eiqQriZp/Q5lNpsaR9trBr94UaXnE47rTKtwrUL+qkZVieHxF9K88s7uvYCfB dzrwzK7B4GA8QoJq/J4pxnIDaQIDSCtACHOje8w9Zk2PfhCzxHbxl1wEhetta7/uqPtv ofC2HS20wNKmkhrtVpEY3k54o0wH6n7Lr3ZLk= MIME-Version: 1.0 Received: by 10.141.124.18 with SMTP id b18mr2926015rvn.151.1266913319167; Tue, 23 Feb 2010 00:21:59 -0800 (PST) Date: Tue, 23 Feb 2010 13:51:59 +0530 Message-ID: <98a59be81002230021j6a0cc408j99fe6a5d57a21aff@mail.gmail.com> From: "C. Jayachandran" To: Randall Stewart Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-mips@freebsd.org Subject: USB support for RMI processors X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Feb 2010 08:22:09 -0000 I've two patches to add USB EHCI support for XLS processors. This is tested with umass driver on a USB attached disk and flash drive. Please review - I've left the original NetBSD license on xls_ehci.c (which came from ehci_pci.c), I hope this is not an issue. http://sites.google.com/site/cjayachandran/files/iodi-bus.patch - Move rmi_pci_bus_space to header and avoid extern - remove unused and commented code (MIPS_BUS_SPACE_PCI, pic_usb_ack) - use rmi_pci_bus_space for USB too (needs byteswap) http://sites.google.com/site/cjayachandran/files/xls-ehci.patch - uncomment xls_ehci.c in files.xlr - changes to xls_ehci.c - updated with dev/usb/controller/ehci_*.c as reference The files sys/mips/rmi/ehcireg.h and sys/mips/rmi/ehcivar.h can be deleted since they are not used now. Also sys/mips/rmi/pcibus.c is unused. Thanks, JC. From owner-freebsd-mips@FreeBSD.ORG Thu Feb 25 01:38:31 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CF6161065673 for ; Thu, 25 Feb 2010 01:38:31 +0000 (UTC) (envelope-from mahan@mahan.org) Received: from ns.mahan.org (ns.mahan.org [67.116.10.138]) by mx1.freebsd.org (Postfix) with ESMTP id 9BB5A8FC2A for ; Thu, 25 Feb 2010 01:38:31 +0000 (UTC) Received: from mahan.org (crowTrobot [67.116.10.140]) by ns.mahan.org (8.13.6/8.13.6) with ESMTP id o1P1gbRe024016 for ; Wed, 24 Feb 2010 17:42:37 -0800 (PST) (envelope-from mahan@mahan.org) To: freebsd-mips@freebsd.org X-Mailer: MH-E 8.2; nmh 1.3; GNU Emacs 23.1.1 Date: Wed, 24 Feb 2010 17:38:26 -0800 Message-ID: <17060.1267061906@mahan.org> From: Patrick Mahan Subject: Writing MIPS assembler instructions in C X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Feb 2010 01:38:31 -0000 All, I keep banging my head against this one with little luck. I need to specify a specific MIPS register in some inline assembly code. Here is roughly the code I need to write - ld t0, 0(%0) .... : /* no output */ : "r" (addr) : "t0" ); I can post more later if required, but I have a very good reason for needing "t0". This is part of some code built on the linux platform and there they are using "%[rt]" which I cannot find a description. Thanks for the help, Patrick From owner-freebsd-mips@FreeBSD.ORG Thu Feb 25 02:07:49 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7BB99106564A for ; Thu, 25 Feb 2010 02:07:49 +0000 (UTC) (envelope-from juli@clockworksquid.com) Received: from mail-fx0-f223.google.com (mail-fx0-f223.google.com [209.85.220.223]) by mx1.freebsd.org (Postfix) with ESMTP id 1F6C68FC13 for ; Thu, 25 Feb 2010 02:07:48 +0000 (UTC) Received: by fxm23 with SMTP id 23so331208fxm.3 for ; Wed, 24 Feb 2010 18:07:44 -0800 (PST) MIME-Version: 1.0 Sender: juli@clockworksquid.com Received: by 10.102.14.13 with SMTP id 13mr413949mun.32.1267063663072; Wed, 24 Feb 2010 18:07:43 -0800 (PST) In-Reply-To: <17060.1267061906@mahan.org> References: <17060.1267061906@mahan.org> From: Juli Mallett Date: Wed, 24 Feb 2010 18:07:23 -0800 X-Google-Sender-Auth: 1b1abe6ece401c9d Message-ID: To: Patrick Mahan Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-mips@freebsd.org Subject: Re: Writing MIPS assembler instructions in C X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Feb 2010 02:07:49 -0000 Hi Patrick, On Wed, Feb 24, 2010 at 17:38, Patrick Mahan wrote: > part of some code built on the linux platform and > there they are using "%[rt]" which I cannot find > a description. %[foo] can be used to refer to named parameters (input or output, maybe even clobbered) of inline assembly instructions rather than using %0, %1, etc., which can be hard to read. Consider: %%% static inline bool atomic_cmpset64(volatile uint64_t *p, uint64_t o, uint64_t v) { uint64_t temp; int res; asm volatile ( "1:\n\t" "move %[res], $0\n\t" "lld %[temp], %[p]\n\t" "bne %[temp], %[o], 2f\n\t" "move %[temp], %[v]\n\t" "li %[res], 1\n\t" "scd %[temp], %[p]\n\t" "beqz %[temp], 1b\n\t" "2:\n\t" : [res] "=&r"(res), [temp] "=&r"(temp), [p] "+m"(*p) : [o] "r"(o), [v] "r"(v) : "memory" ); return (res != 0); } %%% The brackets with the input and output parameters specify what names to use to refer to them in the assembly listing (here they happen to be mostly the same as the variable names, but that's not necessary.) Juli. From owner-freebsd-mips@FreeBSD.ORG Thu Feb 25 02:31:56 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2BD7B106564A; Thu, 25 Feb 2010 02:31:56 +0000 (UTC) (envelope-from mahan@mahan.org) Received: from ns.mahan.org (ns.mahan.org [67.116.10.138]) by mx1.freebsd.org (Postfix) with ESMTP id 05FED8FC18; Thu, 25 Feb 2010 02:31:55 +0000 (UTC) Received: from mahan.org (crowTrobot [67.116.10.140]) by ns.mahan.org (8.13.6/8.13.6) with ESMTP id o1P2a2oX024250; Wed, 24 Feb 2010 18:36:02 -0800 (PST) (envelope-from mahan@mahan.org) Message-Id: <201002250236.o1P2a2oX024250@ns.mahan.org> To: Juli Mallett In-reply-to: References: <17060.1267061906@mahan.org> Comments: In-reply-to Juli Mallett message dated "Wed, 24 Feb 2010 18:07:23 -0800." Date: Wed, 24 Feb 2010 18:31:50 -0800 From: Patrick Mahan Cc: freebsd-mips@freebsd.org Subject: Re: Writing MIPS assembler instructions in C X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Feb 2010 02:31:56 -0000 See inline ... > Hi Patrick, > > On Wed, Feb 24, 2010 at 17:38, Patrick Mahan wrote: > > part of some code built on the linux platform and > > there they are using "%[rt]" which I cannot find > > a description. > > %[foo] can be used to refer to named parameters (input or output, > maybe even clobbered) of inline assembly instructions rather than > using %0, %1, etc., which can be hard to read. Consider: > > %%% > static inline bool > atomic_cmpset64(volatile uint64_t *p, uint64_t o, uint64_t v) > { > uint64_t temp; > int res; > > asm volatile ( > "1:\n\t" > "move %[res], $0\n\t" > "lld %[temp], %[p]\n\t" > "bne %[temp], %[o], 2f\n\t" > "move %[temp], %[v]\n\t" > "li %[res], 1\n\t" > "scd %[temp], %[p]\n\t" > "beqz %[temp], 1b\n\t" > "2:\n\t" > : [res] "=&r"(res), [temp] "=&r"(temp), [p] "+m"(*p) > : [o] "r"(o), [v] "r"(v) > : "memory" > ); > > return (res != 0); > } > %%% > > The brackets with the input and output parameters specify what names > to use to refer to them in the assembly listing (here they happen to > be mostly the same as the variable names, but that's not necessary.) > Ah Sooo <*whack!*>...... I did not even twig on that... I had gotten it in my head that %[rt] was something special to the compiler that caused a certain behavior to occur. Now my problem is I still need to force the value pointed to "addr" into a specific register because there is a jalr to a function else where that I only have binary access too and it expects it's a value in that register. Can I coerce this? Thanks for the education. Patrick From owner-freebsd-mips@FreeBSD.ORG Thu Feb 25 05:26:53 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 754AB1065674; Thu, 25 Feb 2010 05:26:53 +0000 (UTC) (envelope-from c.jayachandran@gmail.com) Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com [74.125.83.182]) by mx1.freebsd.org (Postfix) with ESMTP id 437FB8FC19; Thu, 25 Feb 2010 05:26:53 +0000 (UTC) Received: by pvg3 with SMTP id 3so1193641pvg.13 for ; Wed, 24 Feb 2010 21:26:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=cM0Ep5pRJGVlkdEyFqJw48zAtxsSIUnMjfQ/SblQkNk=; b=sdfZkk/NZOoxiTqI9xZSrTFD6FICjq3aX9f93enNHon0KIxKIZR8Fj0dmcj9kX80EG IiIjGydDpEAOc9TTsXRwnM/tLThnWg/5YN8lxAeV2LcMEd8eK1zuDDaTwXgy7wwgg1I7 +Q4OBr95qavpnTy/I7eBHjCsW8TvGBLxkoIeM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=A3WMvJfHdra91QfN+TPmVefiMkBdPXX1pAtnSgMrM4nWn56kMqtL/BwEG+hH7FSAai /kzznFzBn3SPOm6tixPqzyzukTyPreqP1NbsHa92klBGPBFRnhh+4d6aOjg5CPvYyVos X8K/Wf8HqhHItUEGI3hUSEPYHSpOGC+PMMmcI= MIME-Version: 1.0 Received: by 10.140.83.37 with SMTP id g37mr359446rvb.75.1267075607618; Wed, 24 Feb 2010 21:26:47 -0800 (PST) In-Reply-To: <201002250236.o1P2a2oX024250@ns.mahan.org> References: <17060.1267061906@mahan.org> <201002250236.o1P2a2oX024250@ns.mahan.org> Date: Thu, 25 Feb 2010 10:56:47 +0530 Message-ID: <98a59be81002242126k5bbf5167p7cba4917c13d1256@mail.gmail.com> From: "C. Jayachandran" To: Patrick Mahan Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-mips@freebsd.org Subject: Re: Writing MIPS assembler instructions in C X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Feb 2010 05:26:53 -0000 On Thu, Feb 25, 2010 at 8:01 AM, Patrick Mahan wrote: > > > %[foo] can be used to refer to named parameters (input or output, > > maybe even clobbered) of inline assembly instructions rather than > > using %0, %1, etc., which can be hard to read. =A0Consider: > > > > The brackets with the input and output parameters specify what names > > to use to refer to them in the assembly listing (here they happen to > > be mostly the same as the variable names, but that's not necessary.) > > > > Ah Sooo <*whack!*>...... > > I did not even twig on that... I had gotten it in my head that %[rt] > was something special to the compiler that caused a certain behavior > to occur. > > Now my problem is I still need to force the value pointed to "addr" into > a specific register because there is a jalr to a function else where > that I only have binary access too and it expects it's a value in > that register. =A0Can I coerce this? I may be missing something here, but have you tried : __asm__ __volatile__( "ld $8, 0(%0)\n\t" "jalr $8\n" : : "r"(addr) : "$8"); } Or is there a reason this will not work? JC. JC From owner-freebsd-mips@FreeBSD.ORG Thu Feb 25 05:42:10 2010 Return-Path: Delivered-To: freebsd-mips@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3202C106564A for ; Thu, 25 Feb 2010 05:42:10 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id E2E398FC15 for ; Thu, 25 Feb 2010 05:42:09 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id o1P5ZTBY070445; Wed, 24 Feb 2010 22:35:30 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Wed, 24 Feb 2010 22:35:40 -0700 (MST) Message-Id: <20100224.223540.319083499807541849.imp@bsdimp.com> To: c.jayachandran@gmail.com From: "M. Warner Losh" In-Reply-To: <98a59be81002242126k5bbf5167p7cba4917c13d1256@mail.gmail.com> References: <201002250236.o1P2a2oX024250@ns.mahan.org> <98a59be81002242126k5bbf5167p7cba4917c13d1256@mail.gmail.com> X-Mailer: Mew version 6.3 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-mips@FreeBSD.org Subject: Re: Writing MIPS assembler instructions in C X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Feb 2010 05:42:10 -0000 In message: <98a59be81002242126k5bbf5167p7cba4917c13d1256@mail.gmail.co= m> "C. Jayachandran" writes: : On Thu, Feb 25, 2010 at 8:01 AM, Patrick Mahan wrot= e: : > : > > %[foo] can be used to refer to named parameters (input or output,= : > > maybe even clobbered) of inline assembly instructions rather than= : > > using %0, %1, etc., which can be hard to read. =A0Consider: : > > : > > The brackets with the input and output parameters specify what na= mes : > > to use to refer to them in the assembly listing (here they happen= to : > > be mostly the same as the variable names, but that's not necessar= y.) : > > : > : > Ah Sooo <*whack!*>...... : > : > I did not even twig on that... I had gotten it in my head that %[rt= ] : > was something special to the compiler that caused a certain behavio= r : > to occur. : > : > Now my problem is I still need to force the value pointed to "addr"= into : > a specific register because there is a jalr to a function else wher= e : > that I only have binary access too and it expects it's a value in : > that register. =A0Can I coerce this? : = : I may be missing something here, but have you tried : : = : __asm__ __volatile__( : "ld $8, 0(%0)\n\t" : "jalr $8\n" : : : "r"(addr) : "$8"); : } : = : Or is there a reason this will not work? Which register do you need to force it into? Maybe it is something as simple as: register_t r =3D *(register_t *)addr; foo(r); if that register is a0... Warner From owner-freebsd-mips@FreeBSD.ORG Thu Feb 25 06:26:29 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E19AE1065673 for ; Thu, 25 Feb 2010 06:26:29 +0000 (UTC) (envelope-from mahan@mahan.org) Received: from ns.mahan.org (ns.mahan.org [67.116.10.138]) by mx1.freebsd.org (Postfix) with ESMTP id BAB898FC1B for ; Thu, 25 Feb 2010 06:26:29 +0000 (UTC) Received: from mahan.org (crowTrobot [67.116.10.140]) by ns.mahan.org (8.13.6/8.13.6) with ESMTP id o1P6Ubfc025389; Wed, 24 Feb 2010 22:30:37 -0800 (PST) (envelope-from mahan@mahan.org) To: "C. Jayachandran" In-reply-to: <98a59be81002242126k5bbf5167p7cba4917c13d1256@mail.gmail.com> References: <17060.1267061906@mahan.org> <201002250236.o1P2a2oX024250@ns.mahan.org> <98a59be81002242126k5bbf5167p7cba4917c13d1256@mail.gmail.com> Comments: In-reply-to "C. Jayachandran" message dated "Thu, 25 Feb 2010 10:56:47 +0530." X-Mailer: MH-E 8.2; nmh 1.3; GNU Emacs 23.1.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Wed, 24 Feb 2010 22:26:24 -0800 Message-ID: <19077.1267079184@mahan.org> From: Patrick Mahan Cc: freebsd-mips@freebsd.org Subject: Re: Writing MIPS assembler instructions in C X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Feb 2010 06:26:30 -0000 >> Now my problem is I still need to force the value pointed to "addr" into >> a specific register because there is a jalr to a function else where >> that I only have binary access too and it expects it's a value in >> that register. =C2=A0Can I coerce this? > >I may be missing something here, but have you tried : > >__asm__ __volatile__( > "ld $8, 0(%0)\n\t" > "jalr $8\n" > : : "r"(addr) : "$8"); >} > >Or is there a reason this will not work? > This is the equivalent of "ld t0, 0(a0)", yes? No I tried that method as well, but without success. (or so it seemed to me). Thanks, Patrick. From owner-freebsd-mips@FreeBSD.ORG Thu Feb 25 15:21:33 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 31B181065670 for ; Thu, 25 Feb 2010 15:21:33 +0000 (UTC) (envelope-from mahan@mahan.org) Received: from ns.mahan.org (ns.mahan.org [67.116.10.138]) by mx1.freebsd.org (Postfix) with ESMTP id 07D0E8FC12 for ; Thu, 25 Feb 2010 15:21:32 +0000 (UTC) Received: from mahan.org (crowTrobot [67.116.10.140]) by ns.mahan.org (8.13.6/8.13.6) with ESMTP id o1PFPgOD028776; Thu, 25 Feb 2010 07:25:42 -0800 (PST) (envelope-from mahan@mahan.org) Message-Id: <201002251525.o1PFPgOD028776@ns.mahan.org> To: "C. Jayachandran" In-reply-to: <98a59be81002242231mc491517sa5d752cb870c1f9@mail.gmail.com> References: <17060.1267061906@mahan.org> <201002250236.o1P2a2oX024250@ns.mahan.org> <98a59be81002242126k5bbf5167p7cba4917c13d1256@mail.gmail.com> <19077.1267079184@mahan.org> <98a59be81002242231mc491517sa5d752cb870c1f9@mail.gmail.com> Comments: In-reply-to "C. Jayachandran" message dated "Thu, 25 Feb 2010 12:01:47 +0530." Date: Thu, 25 Feb 2010 07:21:27 -0800 From: Patrick Mahan Cc: freebsd-mips@freebsd.org Subject: Re: Writing MIPS assembler instructions in C X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Feb 2010 15:21:33 -0000 > On Thu, Feb 25, 2010 at 11:56 AM, Patrick Mahan wrote: > > > >>> Now my problem is I still need to force the value pointed to "addr" into > >>> a specific register because there is a jalr to a function else where > >>> that I only have binary access too and it expects it's a value in > >>> that register.  Can I coerce this? > >> > >>I may be missing something here,  but have you tried : > >> > >>__asm__ __volatile__( > >>           "ld     $8, 0(%0)\n\t" > >>           "jalr   $8\n" > >>           : : "r"(addr) : "$8"); > >>} > >> > >>Or is there a reason this will not work? > >> > > > > This is the equivalent of "ld t0, 0(a0)", yes? > > Yes that should be equivalent, but assemblers don't know about 't0' only '$8' > > > No I tried that method as well, but without success.  (or so it > > seemed to me). > > I was trying to see what the issue with this method is. Do you get a > compiler error, or is it incorrect code? Usually you can figure out > what is going wrong by looking at the objdump or the output of 'cc -S' > to see if the requested register was used. > No compiler error but the code does not seem to execute, and I am getting no 'illegal instruction' error. My concern is coming from the issue that using binutils built by the manufacturer of the chip (cavium) which only run on a linux platform, I tried to disassemble the .o containing the asm statement, but it does not decode to the expected instruction. So I am leary that I have correctly generated the asm (inline asm's not my strong suit...) Thanks, Patrick From owner-freebsd-mips@FreeBSD.ORG Thu Feb 25 16:48:05 2010 Return-Path: Delivered-To: freebsd-mips@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5D60B106566B for ; Thu, 25 Feb 2010 16:48:05 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 1CDBE8FC17 for ; Thu, 25 Feb 2010 16:48:05 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id o1PGcrvg079048; Thu, 25 Feb 2010 09:38:54 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Thu, 25 Feb 2010 09:39:05 -0700 (MST) Message-Id: <20100225.093905.864843819598471490.imp@bsdimp.com> To: mahan@mahan.org From: "M. Warner Losh" In-Reply-To: <201002251525.o1PFPgOD028776@ns.mahan.org> References: <19077.1267079184@mahan.org> <98a59be81002242231mc491517sa5d752cb870c1f9@mail.gmail.com> <201002251525.o1PFPgOD028776@ns.mahan.org> X-Mailer: Mew version 6.3 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-mips@FreeBSD.org Subject: Re: Writing MIPS assembler instructions in C X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Feb 2010 16:48:05 -0000 In message: <201002251525.o1PFPgOD028776@ns.mahan.org> Patrick Mahan writes: : > On Thu, Feb 25, 2010 at 11:56 AM, Patrick Mahan w= rote: : > > : > >>> Now my problem is I still need to force the value pointed to "a= ddr" into : > >>> a specific register because there is a jalr to a function else = where : > >>> that I only have binary access too and it expects it's a value = in : > >>> that register. =A0Can I coerce this? : > >> : > >>I may be missing something here, =A0but have you tried : : > >> : > >>__asm__ __volatile__( : > >> =A0 =A0 =A0 =A0 =A0 "ld =A0 =A0 $8, 0(%0)\n\t" : > >> =A0 =A0 =A0 =A0 =A0 "jalr =A0 $8\n" : > >> =A0 =A0 =A0 =A0 =A0 : : "r"(addr) : "$8"); : > >>} : > >> : > >>Or is there a reason this will not work? : > >> : > > : > > This is the equivalent of "ld t0, 0(a0)", yes? : > = : > Yes that should be equivalent, but assemblers don't know about 't0'= only '$8' : > = : > > No I tried that method as well, but without success. =A0(or so it= : > > seemed to me). : > = : > I was trying to see what the issue with this method is. Do you get = a : > compiler error, or is it incorrect code? Usually you can figure out= : > what is going wrong by looking at the objdump or the output of 'cc = -S' : > to see if the requested register was used. : > : = : No compiler error but the code does not seem to execute, and I am get= ting : no 'illegal instruction' error. My concern is coming from the issue = that : using binutils built by the manufacturer of the chip (cavium) which o= nly : run on a linux platform, I tried to disassemble the .o containing the= = : asm statement, but it does not decode to the expected instruction. S= o I : am leary that I have correctly generated the asm (inline asm's not my= : strong suit...) I've used those binutils on FreeBSD with the linuxulator... Warner