diff options
author | Richard Miller <miller.research@gmail.com> | 2016-01-27 16:31:24 +0000 |
---|---|---|
committer | Brad Fitzpatrick <bradfitz@golang.org> | 2016-03-07 16:25:48 +0000 |
commit | 0de0cafb9f5b20058741c68c8dddf79ffc8492d7 (patch) | |
tree | 45d891cc80bbde082499ef245da656463972096b /src/runtime/rt0_plan9_arm.s | |
parent | d145456b168029188ffc654ce2e9f1bbc62f8b99 (diff) | |
download | go-git-0de0cafb9f5b20058741c68c8dddf79ffc8492d7.tar.gz |
runtime: new files for plan9_arm support
Implementation more or less follows plan9_386 version.
Revised 7 March to correct a bug in runtime.seek and
tidy whitespace for 8-column tabs.
Change-Id: I2e921558b5816502e8aafe330530c5a48a6c7537
Reviewed-on: https://go-review.googlesource.com/18966
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/runtime/rt0_plan9_arm.s')
-rw-r--r-- | src/runtime/rt0_plan9_arm.s | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/runtime/rt0_plan9_arm.s b/src/runtime/rt0_plan9_arm.s new file mode 100644 index 0000000000..2a35e4ef66 --- /dev/null +++ b/src/runtime/rt0_plan9_arm.s @@ -0,0 +1,17 @@ +// Copyright 2015 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +#include "textflag.h" + +//in plan 9 argc is at top of stack followed by ptrs to arguments + +TEXT _rt0_arm_plan9(SB),NOSPLIT,$-4 + MOVW R0, _tos(SB) + MOVW 0(R13), R0 + MOVW $4(R13), R1 + MOVW.W R1, -4(R13) + MOVW.W R0, -4(R13) + B runtime·rt0_go(SB) + +GLOBL _tos(SB), NOPTR, $4 |