mirror of
https://github.com/golang/go
synced 2024-11-19 14:34:42 -07:00
0de0cafb9f
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>
18 lines
430 B
ArmAsm
18 lines
430 B
ArmAsm
// 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
|