Skip to content

Commit ec05eea

Browse files
committed
move CallOnG0 to tamago/arm
1 parent e4816bc commit ec05eea

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/runtime/os_tamago.go

-7
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,6 @@ func GetRandomData(r []byte) {
3333
getRandomData(r)
3434
}
3535

36-
// CallOnG0 calls a function (func(off int)) on g0 stack.
37-
//
38-
// The function is meant to be invoked within Go assembly and its arguments
39-
// must be passed through registers rather than on the frame pointer, see
40-
// definition in sys_tamago_$GOARCH.s for details.
41-
func CallOnG0()
42-
4336
// WakeG modifies a goroutine cached timer for time.Sleep (g.timer) to fire as
4437
// soon as possible.
4538
//

src/runtime/os_tamago_arm.go

+7
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ var ramStart uint32
1111
var ramSize uint32
1212
var ramStackOffset uint32
1313

14+
// CallOnG0 calls a function (func(off int)) on g0 stack.
15+
//
16+
// The function is meant to be invoked within Go assembly and its arguments
17+
// must be passed through registers rather than on the frame pointer, see
18+
// definition in sys_tamago_arm.s for details.
19+
func CallOnG0()
20+
1421
// GetG returns the pointer to the current G and its P.
1522
func GetG() (gp uint32, pp uint32)
1623

0 commit comments

Comments
 (0)