aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/runtime.h
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2008-09-18 15:56:46 -0700
committerRuss Cox <rsc@golang.org>2008-09-18 15:56:46 -0700
commita67258f3801b6aa218c8c2563f0a743b944e5946 (patch)
tree8f385f7611882ed7d4c4db5e2d97e74a5b5d459b /src/runtime/runtime.h
parent326bb67fbfefed092a19ebf4b32d1682c31aaeaf (diff)
downloadgo-a67258f3801b6aa218c8c2563f0a743b944e5946.tar.xz
proper handling of signals.
do not run init on g0. R=r DELTA=161 (124 added, 23 deleted, 14 changed) OCL=15490 CL=15497
Diffstat (limited to 'src/runtime/runtime.h')
-rw-r--r--src/runtime/runtime.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/runtime/runtime.h b/src/runtime/runtime.h
index 022789234d..8ead7dd237 100644
--- a/src/runtime/runtime.h
+++ b/src/runtime/runtime.h
@@ -157,6 +157,7 @@ struct M
uint64 morearg; // arg to morestack - must not move
uint64 cret; // return value from C - must not move
uint64 procid; // for debuggers - must not move
+ G* gsignal; // signal-handling G - must not move
G* curg; // current running goroutine
G* lastg; // last running goroutine - to emulate fifo
Gobuf sched;
@@ -248,6 +249,10 @@ void ready(G*);
byte* getenv(int8*);
int32 atoi(byte*);
void newosproc(M *m, G *g, void *stk, void (*fn)(void));
+void sigaltstack(void*, void*);
+void signalstack(byte*, int32);
+G* malg(int32);
+void minit(void);
/*
* mutual exclusion locks. in the uncontended case,