What does %P1 mean in gcc inline assembly?
张云
zyunone at 163.com
Fri Mar 4 07:36:15 EST 2016
Hi
In /arch/x86/boot/main.c (http://lxr.free-electrons.com/source/arch/x86/boot/main.c) ,
In the function init_heap,
asm("leal %P1(%%esp),%0"
122 <http://lxr.free-electrons.com/source/arch/x86/boot/source/arch/x86/boot/main.c#L122> : "=r" (stack_end) : "i" (-STACK_SIZE <http://lxr.free-electrons.com/source/arch/x86/boot/ident?i=STACK_SIZE>));
What does the ‘%P1’ mean in the inline assembly above ?
Thanks !
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160304/4f217015/attachment.html
More information about the Kernelnewbies
mailing list