diff --git a/src/pkg/runtime/proc.c b/src/pkg/runtime/proc.c index 9626d7980c4..0e9785e4568 100644 --- a/src/pkg/runtime/proc.c +++ b/src/pkg/runtime/proc.c @@ -485,10 +485,14 @@ runtime·starttheworld(void) void runtime·mstart(void) { +#ifdef GOOS_windows +#ifdef GOARCH_386 // It is used by windows-386 only. Unfortunately, seh needs // to be located on os stack, and mstart runs on os stack // for both m0 and m. SEH seh; +#endif +#endif if(g != m->g0) runtime·throw("bad runtime·mstart");