From owner-freebsd-mips@FreeBSD.ORG Thu Aug 26 16:16:52 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 7F2231065674 for ; Thu, 26 Aug 2010 16:16:52 +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 405728FC1F for ; Thu, 26 Aug 2010 16:16:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id o7QGA3PQ024163; Thu, 26 Aug 2010 10:10:03 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Thu, 26 Aug 2010 10:10:06 -0600 (MDT) Message-Id: <20100826.101006.597119736749536018.imp@bsdimp.com> To: PMahan@adaranet.com From: "M. Warner Losh" In-Reply-To: <20100826.094630.94843338838666386.imp@bsdimp.com> References: <20100825.232923.287595822763821210.imp@bsdimp.com> <32AB5C9615CC494997D9ABB1DB12783C024C875653@SJ-EXCH-1.adaranet.com> <20100826.094630.94843338838666386.imp@bsdimp.com> 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: freebsd-mips@FreeBSD.org Subject: Re: Is the MIPS kernel buildable from HEAD? 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, 26 Aug 2010 16:16:52 -0000 In message: <20100826.094630.94843338838666386.imp@bsdimp.com> "M. Warner Losh" writes: : : Also, I think our problem is with the a3 register passed in as part of : : platform_start() in cavium/octeon_machdep.c. We have the following in : : mips/lowcore.S - : : : : #if defined(TARGET_OCTEON) : : la a0, app_descriptor_addr : : sw a3, 0(a0) /* Store app descriptor ptr */ : : #endif : : : : So we are storing the value of a3 into a global that we later use in : : octeon32/Octeon_machdep.c - : : Yea. The old code did that. We removed it because we were passing a3 : into the platform_start routine directly. I had to fix some of locore : to not clobber the a3 register, however, to make it useful... A quick : look at locore.S shows that I forgot to finish this paragraph... "shows that all the a* registers aren't used at all, so should be passed unmodified into platform_start. Warner