From owner-freebsd-arm@FreeBSD.ORG Mon Aug 16 10:13:31 2010 Return-Path: Delivered-To: freebsd-arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6736E10656A5 for ; Mon, 16 Aug 2010 10:13:31 +0000 (UTC) (envelope-from andrew@fubar.geek.nz) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.freebsd.org (Postfix) with ESMTP id 347148FC17 for ; Mon, 16 Aug 2010 10:13:30 +0000 (UTC) Received: from compute3.internal (compute3.internal [10.202.2.43]) by gateway1.messagingengine.com (Postfix) with ESMTP id 89BF496; Mon, 16 Aug 2010 06:13:30 -0400 (EDT) Received: from frontend2.messagingengine.com ([10.202.2.161]) by compute3.internal (MEProxy); Mon, 16 Aug 2010 06:13:30 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=date:from:to:cc:subject:message-id:in-reply-to:references:mime-version:content-type:content-transfer-encoding; s=smtpout; bh=XGeI4Ojeh4B01rvBVo4ms+D1gSU=; b=ZC+M/6Ru9my+5ZKCAzprN7A/CVJBFNbsJz9eDfPYsdG0JuAThLxiDeIywHU7X0PZxYkmxAZNo0mqwkkBTnhiTz7gAxxJgsq5/o2gUDjM7lfx3zkb1tzbbYbz9HQ+6/sRwO/mQSSYnUdvTkO0PR61BPzegAr43h0W63FeXiYUuAc= X-Sasl-enc: iYD3TK6u+lQWZiBpdyn4v40agcEXnZPj2GHtmNDa2FCb 1281953609 Received: from localhost (8.241.69.111.dynamic.snap.net.nz [111.69.241.8]) by mail.messagingengine.com (Postfix) with ESMTPA id 141D55E44FC; Mon, 16 Aug 2010 06:13:28 -0400 (EDT) Date: Mon, 16 Aug 2010 22:13:21 +1200 From: Andrew Turner To: "M. Warner Losh" Message-ID: <20100816221321.180cf466@fubar.geek.nz> In-Reply-To: <20100815.153437.722022410199781366.imp@bsdimp.com> References: <20100815.085312.690091871549704621.imp@bsdimp.com> <20100816081533.30ff461f@fubar.geek.nz> <1281907405.27697.19.camel@xeon.thinmesh.com> <20100815.153437.722022410199781366.imp@bsdimp.com> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; i386-portbld-freebsd8.0) X-Pirate: Arrrr Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-arm@FreeBSD.org Subject: Re: FreeBSD EABI ARM & Network boot image howto? X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Aug 2010 10:13:31 -0000 On Sun, 15 Aug 2010 15:34:37 -0600 (MDT) "M. Warner Losh" wrote: > There was talk about NetBSD making this move too, but I don't know > what became of it. I haven't looked at if NetBSD supports it or not. My work was mostly a weekend hacking to prove it is possible. > I'm guessing it won't be a huge deal to make this work, just a bunch > of elbow grease in the syscalls... The main problem is getting a list of syscalls that need to be changed. I found I could boot to single user mode by only changing stat and fstat. I'm currently in the process of converting my hack to using the same method to provide 32 bit and Linux compatability support. We also need to decide if we follow what Linux has done where it changed it's syscall ABI when it moved to the EABI. They changed from reading the instruction from memory to get the syscall number to storing it in r7. The idea is to reduce the cost of the data cache miss as the page will be in the instruction cache. I hacked up some code to do the same but haven't had a chance to properly benchmark the change yet. Andrew