aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/linux
diff options
context:
space:
mode:
authorKai Backman <kaib@golang.org>2009-09-18 16:45:41 -0700
committerKai Backman <kaib@golang.org>2009-09-18 16:45:41 -0700
commit46e392e01c630dee41a67e01223b538aae9dc9b5 (patch)
treee613ef968c90fef5103915306dc7f848c26afe13 /src/pkg/runtime/linux
parent2e5a588718ed741112a5a8c04bbf1d53e417fbda (diff)
downloadgo-46e392e01c630dee41a67e01223b538aae9dc9b5.tar.xz
changed 5c calling convention to use stack exclusively for in
params. a number of fixes to assembly routines that assumed R0 had the first arg. one stack offset fix, arm pushes the link register on stack top. go/test: passes 65% (235/364) tests R=rsc APPROVED=rsc DELTA=20 (11 added, 0 deleted, 9 changed) OCL=34809 CL=34812
Diffstat (limited to 'src/pkg/runtime/linux')
-rw-r--r--src/pkg/runtime/linux/arm/sys.s6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/pkg/runtime/linux/arm/sys.s b/src/pkg/runtime/linux/arm/sys.s
index c61d08f090..d7eb43e739 100644
--- a/src/pkg/runtime/linux/arm/sys.s
+++ b/src/pkg/runtime/linux/arm/sys.s
@@ -12,8 +12,9 @@
#define SYS_mmap2 (SYS_BASE + 192)
TEXT write(SB),7,$0
- MOVW 8(SP), R1
- MOVW 12(SP), R2
+ MOVW 0(FP), R0
+ MOVW 4(FP), R1
+ MOVW 8(FP), R2
SWI $SYS_write
RET
@@ -22,6 +23,7 @@ TEXT exit(SB),7,$0
SWI $SYS_exit
TEXT sys·mmap(SB),7,$0
+ MOVW 0(FP), R0
MOVW 4(FP), R1
MOVW 8(FP), R2
MOVW 12(FP), R3