From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benjamin Herrenschmidt Date: Wed, 08 Jul 2009 07:08:30 +0000 Subject: Re: [PATCH 05/23] Add common PPC64 KVM asm helpers Message-Id: <1247036910.6066.134.camel@pasglop> List-Id: References: <1246976262-4826-6-git-send-email-agraf@suse.de> In-Reply-To: <1246976262-4826-6-git-send-email-agraf@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: kvm-ppc@vger.kernel.org On Wed, 2009-07-08 at 08:59 +0200, Alexander Graf wrote: > > Can't you define a C structure and generate offsets in asm-offsets.h > > using asm-offsets.c like we do for most other stuff ? > > Oh looking at asm-offsets.c you already do define a pt_regs > structure > on stack. I guess I could reuse that. > Yes. Beware that it also includes STACK_FRAME_OVERHEAD so you need to take that into account. Cheers, Ben.