[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20110302.114018.104077586.davem@davemloft.net>
Date: Wed, 02 Mar 2011 11:40:18 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: torvalds@...ux-foundation.org
Cc: oleg@...hat.com, akpm@...ux-foundation.org,
kosaki.motohiro@...fujitsu.com, linux-kernel@...r.kernel.org,
linux-mm@...ck.org, pageexec@...email.hu, solar@...nwall.com,
eteo@...hat.com, spender@...ecurity.net, roland@...hat.com,
miltonm@....com
Subject: Re: [PATCH v3 0/4] exec: unify native/compat code
From: Linus Torvalds <torvalds@...ux-foundation.org>
Date: Wed, 2 Mar 2011 10:00:23 -0800
> No, I think we're ok with passing the structure by value - it's a
> small structure that would generally be passed in registers (at least
> on some architectures, I guess it will depend on the ABI), and we do
> the "struct-by-value" thing for other things too (notably the page
> table entries), so it's not a new thing in the kernel.
We purposely don't do that "page table entry typedef'd to aggregate" stuff
on sparc32 because otherwise such values get passed on the stack.
Architectures can currently avoid this bad code generation for the
page table case, but with this new code they won't be able to avoid
pass-by-value.
--
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