asmlinkage

Russell King - ARM Linux linux at arm.linux.org.uk
Wed May 12 16:13:56 EDT 2010


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.



More information about the linux-arm-kernel mailing list