Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932113AbWHPRLE (ORCPT ); Wed, 16 Aug 2006 13:11:04 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932119AbWHPRKn (ORCPT ); Wed, 16 Aug 2006 13:10:43 -0400 Received: from a222036.upc-a.chello.nl ([62.163.222.36]:35806 "EHLO laptopd505.fenrus.org") by vger.kernel.org with ESMTP id S932116AbWHPRKl (ORCPT ); Wed, 16 Aug 2006 13:10:41 -0400 Subject: [patch 1/5] -fstack-protector feature: annotate the PDA offsets From: Arjan van de Ven To: linux-kernel@vger.kernel.org Cc: akpm@osdl.org, ak@suse.de In-Reply-To: <1155746902.3023.63.camel@laptopd505.fenrus.org> References: <1155746902.3023.63.camel@laptopd505.fenrus.org> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Wed, 16 Aug 2006 18:49:33 +0200 Message-Id: <1155746973.3023.66.camel@laptopd505.fenrus.org> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 (2.2.3-2.fc4) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2177 Lines: 46 Subject: [patch 1/5] Add comments to the PDA structure to annotate offsets From: Arjan van de Ven Change the comments in the pda structure to make the first fields to have their offset documented and to have the comments aligned. The stack protector series needs a field at offset 40 (gcc ABI); annotate upto 40 for that reason. Signed-off-by: Arjan van de Ven Signed-off-by: Ingo Molnar CC: Andi Kleen --- include/asm-x86_64/pda.h | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) Index: linux-2.6.18-rc4-stackprot/include/asm-x86_64/pda.h =================================================================== --- linux-2.6.18-rc4-stackprot.orig/include/asm-x86_64/pda.h +++ linux-2.6.18-rc4-stackprot/include/asm-x86_64/pda.h @@ -9,14 +9,12 @@ /* Per processor datastructure. %gs points to it while the kernel runs */ struct x8664_pda { - struct task_struct *pcurrent; /* Current process */ - unsigned long data_offset; /* Per cpu data offset from linker address */ - unsigned long kernelstack; /* top of kernel stack for current */ - unsigned long oldrsp; /* user rsp for system call */ -#if DEBUG_STKSZ > EXCEPTION_STKSZ - unsigned long debugstack; /* #DB/#BP stack. */ -#endif - int irqcount; /* Irq nesting counter. Starts with -1 */ + struct task_struct *pcurrent; /* 0 */ /* Current process */ + unsigned long data_offset; /* 8 */ /* Per cpu data offset from linker address */ + unsigned long kernelstack; /* 16 */ /* top of kernel stack for current */ + unsigned long oldrsp; /* 24 */ /* user rsp for system call */ + unsigned long debugstack; /* 32 */ /* #DB/#BP stack. */ + int irqcount; /* 40 */ /* Irq nesting counter. Starts with -1 */ int cpunumber; /* Logical CPU number */ char *irqstackptr; /* top of irqstack */ int nodenumber; /* number of current node */ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/