summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn van Groningen2016-03-03 10:42:13 +0000
committerJohn van Groningen2016-03-03 10:42:13 +0000
commit0cfb931552ebab2d3a0437fbfe43bd63e85d93b2 (patch)
treee3f59eb63446c3dd17d4ba029d9735687080e572
parentcall clean_init and clean_fini for shared libraries (diff)
fix positionF for AMD64
-rw-r--r--afileIO3.s2
-rw-r--r--macho64/afileIO3.s2
-rw-r--r--thread/afileIO3.s2
-rw-r--r--thread_macho64/afileIO3.s2
4 files changed, 4 insertions, 4 deletions
diff --git a/afileIO3.s b/afileIO3.s
index 2681fb7..ec21d6a 100644
--- a/afileIO3.s
+++ b/afileIO3.s
@@ -548,10 +548,10 @@ errorF:
ret
positionF:
+ mov rbp,rsp
and rsp,-16
mov r13,rsi
mov r14,rdi
- mov rbp,rsp
mov rdi,rbx
call file_position
mov rsp,rbp
diff --git a/macho64/afileIO3.s b/macho64/afileIO3.s
index 8246ec7..c59a1cb 100644
--- a/macho64/afileIO3.s
+++ b/macho64/afileIO3.s
@@ -558,10 +558,10 @@ errorF:
ret
positionF:
+ mov rbp,rsp
and rsp,-16
mov r13,rsi
mov r14,rdi
- mov rbp,rsp
mov rdi,rbx
att_call _file_position
mov rsp,rbp
diff --git a/thread/afileIO3.s b/thread/afileIO3.s
index 9e2d86f..bc66fff 100644
--- a/thread/afileIO3.s
+++ b/thread/afileIO3.s
@@ -563,11 +563,11 @@ errorF:
ret
positionF:
+ mov rbp,rsp
and rsp,-16
mov r12,r9
mov r13,rsi
mov r14,rdi
- mov rbp,rsp
mov rdi,rbx
call file_position
mov rsp,rbp
diff --git a/thread_macho64/afileIO3.s b/thread_macho64/afileIO3.s
index 207f04f..75c0e51 100644
--- a/thread_macho64/afileIO3.s
+++ b/thread_macho64/afileIO3.s
@@ -596,11 +596,11 @@ errorF:
ret
positionF:
+ mov rbp,rsp
and rsp,-16
mov r12,r9
mov r13,rsi
mov r14,rdi
- mov rbp,rsp
mov rdi,rbx
att_call _file_position
mov rsp,rbp