From 012ceed914a24470207d602deeda3d6642787b4c Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 3 Sep 2014 11:35:22 -0400 Subject: runtime: make onM and mcall take Go func values This gives them correct types in Go and also makes it possible to use them to run Go code on an m stack. LGTM=iant R=golang-codereviews, dave, iant CC=dvyukov, golang-codereviews, khr, r https://golang.org/cl/137970044 --- src/pkg/runtime/runtime.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pkg/runtime/runtime.h') diff --git a/src/pkg/runtime/runtime.h b/src/pkg/runtime/runtime.h index 3cc6f9a81e..d67d7a0076 100644 --- a/src/pkg/runtime/runtime.h +++ b/src/pkg/runtime/runtime.h @@ -809,8 +809,8 @@ void runtime·runpanic(Panic*); uintptr runtime·getcallersp(void*); int32 runtime·mcount(void); int32 runtime·gcount(void); -void runtime·mcall(void(*)(G*)); -void runtime·onM(void(*)(void)); +void runtime·mcall(void(**)(G*)); +void runtime·onM(void(**)(void)); uint32 runtime·fastrand1(void); void runtime·rewindmorestack(Gobuf*); int32 runtime·timediv(int64, int32, int32*); -- cgit v1.3-5-g9baa