diff options
| author | forsyth <forsyth@vitanuova.com> | 2011-02-25 11:03:47 +0000 |
|---|---|---|
| committer | forsyth <forsyth@vitanuova.com> | 2011-02-25 11:03:47 +0000 |
| commit | 1343b7e5fc7e671a93eb5ed909dde7bb5f6c87cf (patch) | |
| tree | 3b2191854e8b2a5f50de592b39eb1c279b902503 /emu/Plan9 | |
| parent | d7b19496d84ff3d0b03eac8f31bdf59287c70065 (diff) | |
20110225-1104
Diffstat (limited to 'emu/Plan9')
| -rw-r--r-- | emu/Plan9/os.c | 8 | ||||
| -rw-r--r-- | emu/Plan9/win.c | 6 |
2 files changed, 11 insertions, 3 deletions
diff --git a/emu/Plan9/os.c b/emu/Plan9/os.c index d681ec67..97b9b7e0 100644 --- a/emu/Plan9/os.c +++ b/emu/Plan9/os.c @@ -67,7 +67,7 @@ pexit(char *msg, int) } int -kproc(char *name, void (*func)(void*), void *arg, int flags) +kproc1(char *name, void (*func)(void*), void *arg, int flags) { int pid; Proc *p; @@ -132,6 +132,12 @@ kproc(char *name, void (*func)(void*), void *arg, int flags) } void +kproc(char *name, void (*func)(void*), void *arg, int flags) +{ + kproc1(name, func, arg, flags); +} + +void traphandler(void *reg, char *msg) { int intwait; diff --git a/emu/Plan9/win.c b/emu/Plan9/win.c index 2f280853..e588cd79 100644 --- a/emu/Plan9/win.c +++ b/emu/Plan9/win.c @@ -16,6 +16,8 @@ enum extern Memimage *screenimage; +extern int kproc1(char*, void (*)(void*), void*, int); + static ulong* attachwindow(Rectangle*, ulong*, int*, int*); static void plan9readmouse(void*); @@ -150,8 +152,8 @@ attachscreen(Rectangle *r, ulong *chan, int *d, int *width, int *softscreen) return nil; } - mousepid = kproc("readmouse", plan9readmouse, nil, 0); - keybdpid = kproc("readkbd", plan9readkeybd, nil, 0); + mousepid = kproc1("readmouse", plan9readmouse, nil, 0); + keybdpid = kproc1("readkbd", plan9readkeybd, nil, 0); fd = open("/dev/label", OWRITE); if(fd >= 0){ |
