]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-x86/calling.h
x86 ptrace: unify syscall tracing
[linux-2.6-omap-h63xx.git] / include / asm-x86 / calling.h
index f13e62e2cb3e75160297459ef182921b170d0850..2bc162e0ec6eb3bd02c685d80e99c24762a002b7 100644 (file)
        .endif
        .endm
 
-       .macro LOAD_ARGS offset
+       .macro LOAD_ARGS offset, skiprax=0
        movq \offset(%rsp),    %r11
        movq \offset+8(%rsp),  %r10
        movq \offset+16(%rsp), %r9
        movq \offset+48(%rsp), %rdx
        movq \offset+56(%rsp), %rsi
        movq \offset+64(%rsp), %rdi
+       .if \skiprax
+       .else
        movq \offset+72(%rsp), %rax
+       .endif
        .endm
 
 #define REST_SKIP      6*8
        .macro icebp
        .byte 0xf1
        .endm
-