[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <3908561D78D1C84285E8C5FCA982C28F19371120@ORSMSX104.amr.corp.intel.com>
Date: Wed, 25 Jul 2012 18:23:01 +0000
From: "Luck, Tony" <tony.luck@...el.com>
To: James Bottomley <James.Bottomley@...senPartnership.com>,
Ingo Molnar <mingo@...nel.org>
CC: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Ingo Molnar <mingo@...e.hu>, Helge Deller <deller@....de>,
"linux-parisc@...r.kernel.org" <linux-parisc@...r.kernel.org>,
"linux-ia64@...r.kernel.org" <linux-ia64@...r.kernel.org>,
"Wu, Fengguang" <fengguang.wu@...el.com>
Subject: RE: [PATCH] debug: Do not permit CONFIG_DEBUG_STACK_USAGE=y on IA64
or PARISC
> Since the problem is an invalid assumption about how the stack grows,
> why not just condition it on that. We actually have a config option for
> this: CONFIG_STACK_GROWSUP. But for some reason ia64 doesn't define
> this, why not, Tony? It looks deliberate because you have replaced a
> lot of
>
> #ifdef CONFIG_STACK_GROWSUP
>
> with
>
> #if defined(CONFIG_STACK_GROWSUP) || defined(CONFIG_IA64)
>
> but not all of them.
ia64 is special - we have stacks that grow both upwards and downwards!
The typical "C" stack for local function variables that need to be allocated in
memory (arrays, structures, things we take the address of, things that just
don't fit because we run out of registers) grows downwards. But local
variables assigned to registers get quietly saved away to an upwards growing
stack by the register stack engine (working somewhat asynchronously from
the cpu).l
-Tony
Powered by blists - more mailing lists