* asmlinkage
@ 2010-05-09 21:49 Alexander (Sasha) Sirotkin
2010-05-12 20:13 ` asmlinkage Russell King - ARM Linux
0 siblings, 1 reply; 2+ messages in thread
From: Alexander (Sasha) Sirotkin @ 2010-05-09 21:49 UTC (permalink / raw)
To: linux-arm-kernel
Sorry for yet another basic question, but why "asmlinkage" is an empty macro
on ARM?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20100510/574cc61c/attachment-0001.htm>
^ permalink raw reply [flat|nested] 2+ messages in thread
* asmlinkage
2010-05-09 21:49 asmlinkage Alexander (Sasha) Sirotkin
@ 2010-05-12 20:13 ` Russell King - ARM Linux
0 siblings, 0 replies; 2+ messages in thread
From: Russell King - ARM Linux @ 2010-05-12 20:13 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, May 10, 2010 at 12:49:24AM +0300, Alexander (Sasha) Sirotkin wrote:
> Sorry for yet another basic question, but why "asmlinkage" is an empty macro
> on ARM?
ARM doesn't require any special API modification to call functions
from assembly.
x86 has two different calling conventions - one is to stack all function
arguments, the other passes some arguments via registers. asmlinkage
selects between them.
However, we keep the asmlinkage labelling on ARM because it's useful to
indicate which functions are called by assembly - and therefore which
need closer inspection when their signature is changed to make sure the
assembly calling them is also fixed.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-05-12 20:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-09 21:49 asmlinkage Alexander (Sasha) Sirotkin
2010-05-12 20:13 ` asmlinkage Russell King - ARM Linux
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).