From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758084AbYBDUWq (ORCPT ); Mon, 4 Feb 2008 15:22:46 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756509AbYBDUWj (ORCPT ); Mon, 4 Feb 2008 15:22:39 -0500 Received: from pasmtpb.tele.dk ([80.160.77.98]:44196 "EHLO pasmtpB.tele.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756319AbYBDUWj (ORCPT ); Mon, 4 Feb 2008 15:22:39 -0500 Date: Mon, 4 Feb 2008 21:22:41 +0100 From: Sam Ravnborg To: Cyrill Gorcunov Cc: Ingo Molnar , Andi Kleen , Thomas Gleixner , "H. Peter Anvin" , LKML Subject: Re: [PATCH] x86: vmlinux_64.lds.S - use THREAD_SIZE instead of numeric constant Message-ID: <20080204202241.GA16919@uranus.ravnborg.org> References: <20080204171037.GA6743@cvg> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080204171037.GA6743@cvg> User-Agent: Mutt/1.4.2.1i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Cyrill. On Mon, Feb 04, 2008 at 08:10:37PM +0300, Cyrill Gorcunov wrote: > Signed-off-by: Cyrill Gorcunov The patch looks simple but please explain why you do what you do. It took me some digging before I could convince mysleft this was indeed a correct change. And I am pretty sure you did the same investigation yourself. A comment like: arch/x866/kernel/inittask.c require all variables allocated in the section .data.init_task to be aligned with THREAD_SIZE. would have made me happy. Sam > --- > > Index: linux-2.6.git/arch/x86/kernel/vmlinux_64.lds.S > =================================================================== > --- linux-2.6.git.orig/arch/x86/kernel/vmlinux_64.lds.S 2008-01-30 17:51:57.000000000 +0300 > +++ linux-2.6.git/arch/x86/kernel/vmlinux_64.lds.S 2008-02-03 22:38:48.000000000 +0300 > @@ -129,7 +129,7 @@ SECTIONS > #undef VVIRT_OFFSET > #undef VVIRT > > - . = ALIGN(8192); /* init_task */ > + . = ALIGN(THREAD_SIZE); /* init_task */ > .data.init_task : AT(ADDR(.data.init_task) - LOAD_OFFSET) { > *(.data.init_task) > }:data.init