Mercurial > mplayer.hg
diff loader/wrapper.S @ 29263:0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
| author | diego |
|---|---|
| date | Wed, 13 May 2009 02:58:57 +0000 |
| parents | c3eb28f300d0 |
| children | 6dd1ae2298f3 |
line wrap: on
line diff
--- a/loader/wrapper.S Tue May 12 19:25:35 2009 +0000 +++ b/loader/wrapper.S Wed May 13 02:58:57 2009 +0000 @@ -6,10 +6,10 @@ report_entry: .long null_call .globl report_ret -report_ret: +report_ret: .long null_call .global wrapper_target -wrapper_target: +wrapper_target: .long null_call .section .text @@ -22,43 +22,43 @@ .type wrapper, @function .balign 16,0x90 wrapper: - pusha # store registers (EAX, ECX, EDX, EBX, ESP, EBP, ESI, EDI) + pusha # store registers (EAX, ECX, EDX, EBX, ESP, EBP, ESI, EDI) pushf # store flags - - push %ebp # set up a stack frame + + push %ebp # set up a stack frame movl %esp, %ebp leal 4(%ebp), %eax # push flags addr push %eax leal 8(%ebp), %eax # push registers addr push %eax - - leal 40(%ebp), %edx + + leal 40(%ebp), %edx movl (%ebp), %eax subl %edx, %eax push %eax push %edx - + call *report_entry # report entry - + test %eax, %eax jnz .Ldone leave # restore %esp, %ebp popf # restore flags popa # restore registers - + popl caller_return # switch return addresses - pushl $.Lwrapper_return - + pushl $.Lwrapper_return + jmp *wrapper_target # wrapper_target should return at .Lwrapper_return .balign 16, 0x90 -.Lwrapper_return: +.Lwrapper_return: pushl caller_return # restore the original return address pusha # more for reference sake here pushf - + push %ebp # set up a stack frame movl %esp, %ebp @@ -74,10 +74,10 @@ push %edx call *report_ret # report the return information (same args) -.Ldone: +.Ldone: leave popf popa ret - +
