do not preserve caller-saved registers

This commit is contained in:
Niko Matsakis 2011-10-12 16:43:40 -07:00 committed by Brian Anderson
parent 6a0d86c754
commit d3e865438f

View File

@ -22,8 +22,8 @@ swap_registers:
movl 4(%esp), %eax
//movl %eax, 0(%eax)
movl %ebx, 4(%eax)
movl %ecx, 8(%eax)
movl %edx, 12(%eax)
//movl %ecx, 8(%eax)
//movl %edx, 12(%eax)
movl %ebp, 16(%eax)
movl %esi, 20(%eax)
movl %edi, 24(%eax)
@ -50,7 +50,7 @@ swap_registers:
movl 4(%eax), %ebx
// save ecx for later...
movl 12(%eax), %edx
//movl 12(%eax), %edx
movl 16(%eax), %ebp
movl 20(%eax), %esi
movl 24(%eax), %edi
@ -69,7 +69,7 @@ swap_registers:
popf
// ok, now we can restore ecx
movl 8(%eax), %ecx
//movl 8(%eax), %ecx
// Return!
jmp *48(%eax)