diff options
Diffstat (limited to 'libgo/runtime/proc.c')
-rw-r--r-- | libgo/runtime/proc.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libgo/runtime/proc.c b/libgo/runtime/proc.c new file mode 100644 index 00000000000..191fac613c8 --- /dev/null +++ b/libgo/runtime/proc.c @@ -0,0 +1,16 @@ +// Copyright 2009 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 "runtime.h" +#include "malloc.h" /* so that acid generated from proc.c includes malloc data structures */ + +typedef struct Sched Sched; + +M m0; + +#ifdef __rtems__ +#define __thread +#endif + +__thread M *m = &m0; |