mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
do not preserve caller-saved registers
This commit is contained in:
parent
6a0d86c754
commit
d3e865438f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user