Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752637AbZGMGDO (ORCPT ); Mon, 13 Jul 2009 02:03:14 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752201AbZGMGDJ (ORCPT ); Mon, 13 Jul 2009 02:03:09 -0400 Received: from 219-87-157-169.static.tfn.net.tw ([219.87.157.169]:58668 "EHLO mswedge2.sunplus.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751757AbZGMGDI (ORCPT ); Mon, 13 Jul 2009 02:03:08 -0400 In-Reply-To: <200907101449.45286.arnd@arndb.de> To: Arnd Bergmann Cc: Christoph Hellwig , linux-arch@vger.kernel.org, linux-arch-owner@vger.kernel.org, linux-kernel@vger.kernel.org, Roland McGrath , Linus Torvalds MIME-Version: 1.0 Subject: Re: [PATCH V2] score: add regset support X-Mailer: Lotus Notes Release 7.0.3 September 26, 2007 Message-ID: From: liqin.chen@sunplusct.com Date: Mon, 13 Jul 2009 13:56:22 +0800 X-MIMETrack: Serialize by Router on ctmail01/SunplusCT(Release 7.0.3FP1|February 24, 2008) at 2009/07/13 ?? 01:56:23, Serialize complete at 2009/07/13 ?? 01:56:23 Content-Type: text/plain; charset="GB2312" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by alpha.home.local id n6D63aXx000762 Content-Length: 1653 Lines: 68 linux-arch-owner@vger.kernel.org д?? 2009-07-10 20:49:44: > struct pt_regs { > unsigned long pad0[6]; > unsigned long orig_r4; > unsigned long orig_r7; > unsigned long regs[32]; > > unsigned long cel; > unsigned long ceh; > > unsigned long sr0; /* cnt */ > unsigned long sr1; /* lcr */ > unsigned long sr2; /* scr */ > > unsigned long cp0_epc; > unsigned long cp0_ema; > unsigned long cp0_psr; > unsigned long cp0_ecr; > unsigned long cp0_condition; > > long is_syscall; > }; > > to > > struct pt_regs { > unsigned long regs[32]; > > unsigned long cel; > unsigned long ceh; > > unsigned long sr0; /* cnt */ > unsigned long sr1; /* lcr */ > unsigned long sr2; /* scr */ > > unsigned long cp0_epc; > unsigned long cp0_ema; > unsigned long cp0_psr; > unsigned long cp0_ecr; > unsigned long cp0_condition; > #ifdef __KERNEL__ > unsigned long orig_r4; > unsigned long orig_r7; > long is_syscall; > unsigned long pad0[3]; > #else > unsigned long pad0[6]; > #endif > }; > unsigned long pad0[6]; was place at the start of pt_regs use to hold the arguments from userland. caller(exception handler) not need to change stack pointer. unsigned long orig_r4; unsigned long orig_r7; move to end of the pt_regs haven't problem. Thanks, Liqin ????{.n?+???????+%?????ݶ??w??{.n?+????{??G?????{ay?ʇڙ?,j??f???h?????????z_??(?階?ݢj"???m??????G????????????&???~???iO???z??v?^?m???? ????????I?