runtime: update CBARGS macro for nacl/amd64p32

CBARGS is unused on amd64p32 so make this explicit.

LGTM=bradfitz
R=rsc, bradfitz
CC=golang-codereviews
https://golang.org/cl/70940043
This commit is contained in:
Dave Cheney 2014-03-04 10:36:04 +11:00
parent 76cc0a2712
commit 13ab78fdd9
1 changed files with 2 additions and 3 deletions

View File

@ -223,10 +223,9 @@ struct CallbackArgs
#define CBARGS (CallbackArgs*)((byte*)m->g0->sched.sp+2*sizeof(void*))
#endif
// There is no cgo support for nacl/amd64p32 but we need to have something here
// so use the amd64 value as a placeholder.
// Unimplemented on amd64p32
#ifdef GOARCH_amd64p32
#define CBARGS (CallbackArgs*)((byte*)m->g0->sched.sp+2*sizeof(void*))
#define CBARGS (CallbackArgs*)(nil)
#endif
// On 386, stack frame is three words, plus caller PC.