Re: [PATCH v15 21/25] x86/asm: Create stack frames in rwsem functions
From: Borislav Petkov
Date: Tue Jan 12 2016 - 09:40:41 EST
On Tue, Jan 12, 2016 at 08:36:48AM -0600, Josh Poimboeuf wrote:
> Ingo made a similar suggestion a while back:
> But the frame stuff can't be folded into ENTRY/ENDPROC because we don't
> need to create a stack frame for *all* functions, but rather only for
> non-leaf functions.
> So then we considered something like:
> for non-leaf functions, and:
> for leaf functions.
> But that was too inflexible for the case where a function ends with a
> jump instead of a return.
Aah, there it is, thanks!
It actually does ring a bell. Ok. I'm guessing the expectation is that
we're not going to sprinkle those excessively but use them only in asm
code. Which should be relatively seldom, especially since we're moving
more and more stuff to C.
ECO tip #101: Trim your mails when you reply.