From: Ian Campbell Subject: Re: [PATCH] xen/arm64: fix stack dump in show_trace Date: Thu, 13 Jun 2013 18:28:02 +0100 Message-ID: <1371144482.6955.62.camel@zakaz.uk.xensource.com> References: <1370343250-24424-1-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1370343250-24424-1-git-send-email-ian.campbell@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: julien.grall@citrix.com, tim@xen.org, stefano.stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org On Tue, 2013-06-04 at 11:54 +0100, Ian Campbell wrote: > On aarch64 the frame pointer points to the next frame pointer and the return > address is the previous stack slot (so below on the downward growing stack, > therefore above in memory): > > | ^addresses grow up > FP -> | | > | | > v | > stack grows down. > > This is contrary to aarch32 where the frame pointer points to the return > address and the next frame pointer is the next stack slot (so above on the > downward growing stack, below in memory): > > FP -> | ^addresses grow up > | | > | | > v | > stack grows down. > > In addition print out LR as part of the trace, since it may contain the > penultimate return address e.g. if the ultimate function is a leaf function. > > Lastly nuke some unnecessary braces. > > Signed-off-by: Ian Campbell Stefano Acked this IRL so I have applied.