diff options
| author | Kai Backman <kaib@golang.org> | 2009-09-18 16:45:41 -0700 |
|---|---|---|
| committer | Kai Backman <kaib@golang.org> | 2009-09-18 16:45:41 -0700 |
| commit | 46e392e01c630dee41a67e01223b538aae9dc9b5 (patch) | |
| tree | e613ef968c90fef5103915306dc7f848c26afe13 /src/pkg/runtime/linux | |
| parent | 2e5a588718ed741112a5a8c04bbf1d53e417fbda (diff) | |
| download | go-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.s | 6 |
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 |
