[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20080701.214507.261426026.davem@davemloft.net>
Date: Tue, 01 Jul 2008 21:45:07 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: mpatocka@...hat.com
Cc: helge.hafting@...el.hist.no, sparclinux@...r.kernel.org,
linux-kernel@...r.kernel.org, gcc@....gnu.org
Subject: Re: [10 PATCHES] inline functions to avoid stack overflow
From: Mikulas Patocka <mpatocka@...hat.com>
Date: Wed, 2 Jul 2008 00:39:35 -0400 (EDT)
> The ABI is very vague about it. The V9 ABI just displays that 6-word space
> in a figure bug doesn't say anything about it's usage. The V8 ABI just
> says that "the function may write incoming arguments there". If it may
> write anything other, it is unknown --- probably yes, but it is not said
> in the document.
>
> The document nicely specifies who owns which registers, but doesn't say
> that about the stack space :-(
Actually, I know for a fact that you have to have those slots there.
A long time ago in the sparc64 kernel, in the trap entry code, I tried
only giving 128 bytes of stack frame as the trap entry called into C
code. And it did not work, I had to put the 6 slots there.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists