On 03/19/12 14:34, H.J. Lu wrote:
> #define CURRENT_STACK_FRAME \
> - ({ char *frame; asm ("movq %%rsp, %0" : "=r" (frame)); frame; })
> + ({ char *frame; asm ("mov %%" RSP_LP ", %0" : "=r" (frame)); frame; })
I'm pretty sure
({ register void *esp __asm__("esp"); esp; })
will work without the unneeded copy.
r~