From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262165AbTELOmg (ORCPT ); Mon, 12 May 2003 10:42:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262171AbTELOmg (ORCPT ); Mon, 12 May 2003 10:42:36 -0400 Received: from franka.aracnet.com ([216.99.193.44]:57800 "EHLO franka.aracnet.com") by vger.kernel.org with ESMTP id S262165AbTELOmf (ORCPT ); Mon, 12 May 2003 10:42:35 -0400 Date: Mon, 12 May 2003 05:40:55 -0700 From: "Martin J. Bligh" To: William Lee Irwin III cc: linux-kernel , lse-tech , haveblue@us.ibm.com Subject: Re: 2.5.69-mjb1 Message-ID: <21850000.1052743254@[10.10.2.4]> In-Reply-To: <20030512132939.GF19053@holomorphy.com> References: <9380000.1052624649@[10.10.2.4]> <20030512132939.GF19053@holomorphy.com> X-Mailer: Mulberry/2.2.1 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org --On Monday, May 12, 2003 06:29:39 -0700 William Lee Irwin III wrote: > On Sat, May 10, 2003 at 08:44:09PM -0700, Martin J. Bligh wrote: >> thread_info_cleanup (4K stacks pt 1) Dave Hansen / Ben LaHaise >> Prep work to reduce kernel stacks to 4K >> interrupt_stacks (4K stacks pt 2) Dave Hansen / Ben LaHaise >> Create a per-cpu interrupt stack. >> stack_usage_check (4K stacks pt 3) Dave Hansen / Ben LaHaise >> Check for kernel stack overflows. >> 4k_stack (4K stacks pt 4) Dave Hansen >> Config option to reduce kernel stacks to 4K > > > diff -urpN linux-2.5.69/include/asm-i386/processor.h kstk-2.5.69-1/include/asm-i386/processor.h > --- linux-2.5.69/include/asm-i386/processor.h 2003-05-04 16:53:00.000000000 -0700 > +++ kstk-2.5.69-1/include/asm-i386/processor.h 2003-05-12 06:05:39.000000000 -0700 > @@ -470,8 +470,8 @@ extern int kernel_thread(int (*fn)(void > extern unsigned long thread_saved_pc(struct task_struct *tsk); > > unsigned long get_wchan(struct task_struct *p); > -#define KSTK_EIP(tsk) (((unsigned long *)(4096+(unsigned long)(tsk)->thread_info))[1019]) > -#define KSTK_ESP(tsk) (((unsigned long *)(4096+(unsigned long)(tsk)->thread_info))[1022]) > +#define KSTK_EIP(task) (((unsigned long *)(task)->thread_info)[THREAD_SIZE/sizeof(unsigned long) - 5]) > +#define KSTK_ESP(task) (((unsigned long *)(task)->thread_info)[THREAD_SIZE/sizeof(unsigned long) - 2]) > > struct microcode { > unsigned int hdrver; Can I get some sort of vague explanation please? ;-) M.