Commit 4f0be10e authored by ARM64 Builder's avatar ARM64 Builder Committed by Mart Lubbers
Browse files

fix copy from and to graph interfaces for linunx ARM64

parent a201bf02
......@@ -8,45 +8,46 @@
.globl __copy__graph__to__string
__copy__graph__to__string:
add x4,x27,x25,lsl #3
mov x3,x27
mov x2,x8
mov x17,sp
#mov sp,#8
bic sp,x17,#8
str x8,[x26],#8
__copy__graph__to__string_0:
mov x29,x30
add x2,x27,x25,lsl #3
mov x1,x27
mov x0,x8
bl copy_graph_to_string
mov sp,x17
str x2,[sp,#-8]!
str x0,[x28,#-8]!
add x3,x27,x25,lsl #3
mov x2,x8
mov x17,sp
#mov sp,#8
#bic sp,x17,sp
bic sp,x17,#8
add x1,x27,x25,lsl #3
ldr x0,[x26,#-8]
bl remove_forwarding_pointers_from_graph
mov sp,x17
ldr x9,[sp],#8
ldr x9,[x28],#8
cmp x9,#0
bne __copy__graph__to__string_1
add x6,x25,#1
sub x25,x25,x6
bl collect_1
str x29,[x28,#-8]!
bl collect_0
add x25,x25,x6
b __copy__graph__to__string
ldr x8,[x26,#-8]
b __copy__graph__to__string_0
__copy__graph__to__string_1:
ldr x6,[x9,#8]
sub x26,x26,#8
mov x8,x9
add x6,x6,#8+3
add x6,x6,#16+7
and x5,x6,#-8
add x27,x27,x5
sub x25,x25,x6,lsr #3
ldr x16,[sp],#8
br x16
ldr x30,[x28],#8
ret x29
......@@ -9,39 +9,44 @@
.globl __copy__string__to__graph
__copy__string__to__graph:
sub sp,sp,#8
mov x5,sp
add x4,x27,x25,lsl #3
mov x3,x27
mov x2,x8
mov x17,sp
bic sp,x17,#8
str x8,[x26],#8
__copy__string__to__graph_0:
mov x29,x30
sub x28,x28,#8
mov x3,x28
add x2,x27,x25,lsl #3
mov x1,x27
mov x0,x8
bl copy_string_to_graph
mov sp,x17
tst x2,#1
tst x0,#1
beq __copy__string__to__graph_1
ldr x9,[sp],#8
and x3,x2,#-8
mov x2,x8
mov x17,sp
bic sp,x17,#8
and x1,x0,#-8
ldr x0,[x26,#-8]
bl remove_forwarding_pointers_from_string
mov sp,x17
ldr x9,[x28],#8
sub x6,x9,x27
lsr x6,x6,#3
sub x25,x25,x6
bl collect_1
str x29,[x28,#-8]!
bl collect_0
add x25,x25,x6
b __copy__string__to__graph
ldr x8,[x26,#-8]
b __copy__string__to__graph_0
__copy__string__to__graph_1:
ldr x16,[sp],#8
mov x8,x2
ldr x16,[x28],#8
sub x26,x26,#8
mov x8,x0
sub x6,x16,x27
mov x27,x16
sub x25,x25,x6,lsr #3
ldr x16,[sp],#8
br x16
ldr x30,[x28],#8
ret x29
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment