summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn van Groningen2012-02-06 14:21:05 +0000
committerJohn van Groningen2012-02-06 14:21:05 +0000
commita790799bd6b53a0b2dd0207cdf3566ca6404d3a8 (patch)
treeccb7acca62802894b4dd3a741fabdfca89127eb4
parentfix minimum heap size test for the memory profiler (diff)
use linux calling convention for second call of file_read_s_line (instead of windows calling convention)
-rw-r--r--afileIO3.s16
1 files changed, 9 insertions, 7 deletions
diff --git a/afileIO3.s b/afileIO3.s
index 1630f39..4960095 100644
--- a/afileIO3.s
+++ b/afileIO3.s
@@ -788,16 +788,18 @@ st_copy_string2:
sub rcx,1
jnc copy_st_lp2
- mov r9,rsp
- mov r8,rdi
- lea rdx,[r15*8]
- mov rcx,rbx
-
+ mov rcx,rsp
+ mov rdx,rdi
mov rbp,rsp
- or rsp,8
- sub rsp,40
+ and rsp,-16
+ mov r13,rsi
+ lea rsi,[r15*8]
+ mov r14,rdi
+ mov rdi,rbx
call file_read_s_line
mov rsp,rbp
+ mov rsi,r13
+ mov rdi,r14
test rax,rax
js readLineSF_again