From owner-freebsd-arm@FreeBSD.ORG Sun Dec 22 11:36:41 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 746F2BE5 for ; Sun, 22 Dec 2013 11:36:41 +0000 (UTC) Received: from nibbler.fubar.geek.nz (nibbler.fubar.geek.nz [199.48.134.198]) by mx1.freebsd.org (Postfix) with ESMTP id 5083F1649 for ; Sun, 22 Dec 2013 11:36:41 +0000 (UTC) Received: from bender.Home (97e07ae8.skybroadband.com [151.224.122.232]) by nibbler.fubar.geek.nz (Postfix) with ESMTPSA id DFD235DFFE; Sun, 22 Dec 2013 11:36:39 +0000 (UTC) Date: Sun, 22 Dec 2013 11:36:33 +0000 From: Andrew Turner To: Howard Su Subject: Re: [PATCH] Add stack unwind support for the functions in .ko Message-ID: <20131222113633.61baf954@bender.Home> In-Reply-To: References: <20131215173042.0dead636@bender.Home> <20131222104721.22b1bd45@bender.Home> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-arm X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Dec 2013 11:36:41 -0000 On Sun, 22 Dec 2013 19:22:39 +0800 Howard Su wrote: > On Sunday, December 22, 2013, Andrew Turner wrote: > > > On Sun, 22 Dec 2013 17:50:31 +0800 > > Howard Su > wrote: > > > > > here is the new version which address the print registers out > > > problem. > > > > There are a number of style bugs in this patch: make sure you limit > > lines to 80 characters; indentation should use tabs, followed by 4 > > spaces if you need to split a long line; braces should be at the > > end of a line when used with an if, for or while statement. > > > Sure. I will fix style(9) issues. > > > > > You've added the A0 register. I don't see where it is defined by > > ARM as a register name or synonym. It is also used to adjust which > > bit from a bitmask we check. This would mean we read the wrong bit > > and may get a register that was never updated. Because of this we > > will never read r0. > > > Let me find a better name for this macro. What I want is the macro > describe the register contains first parameter. You shouldn't need one, the first parameter is in r0. Andrew