Skip to content

Commit

Permalink
Rewrite arm/ccall.s
Browse files Browse the repository at this point in the history
  • Loading branch information
ILyoan committed Mar 19, 2013
1 parent 0f89eab commit c1cacc3
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions src/rt/arch/arm/ccall.S
Expand Up @@ -5,23 +5,18 @@

.globl __morestack
.hidden __morestack
.type __morestack, %function
__morestack:
mov r3, sp
.fnstart
.save {r4, fp, lr}
push {r4, fp, lr}
.movsp r4
mov r4, sp
mov sp, r2

str r3, [sp]
str lr, [sp, #-4]

sub sp, #8

mov fp, sp
blx r1

add sp, #8

ldr lr, [sp, #-4]
ldr r3, [sp]

mov sp, r3
mov sp, r4
pop {r4, fp, lr}
mov pc, lr

.fnend

5 comments on commit c1cacc3

@bors
Copy link
Contributor

@bors bors commented on c1cacc3 Mar 20, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from sanxiyn
at ILyoan@c1cacc3

@bors
Copy link
Contributor

@bors bors commented on c1cacc3 Mar 20, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging ILyoan/rust/arm_use_ndk_rebase = c1cacc3 into auto

@bors
Copy link
Contributor

@bors bors commented on c1cacc3 Mar 20, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ILyoan/rust/arm_use_ndk_rebase = c1cacc3 merged ok, testing candidate = 01e1798

@bors
Copy link
Contributor

@bors bors commented on c1cacc3 Mar 20, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on c1cacc3 Mar 20, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding incoming to auto = 01e1798

Please sign in to comment.