summaryrefslogtreecommitdiff
path: root/emu/Plan9
diff options
context:
space:
mode:
Diffstat (limited to 'emu/Plan9')
-rw-r--r--emu/Plan9/os.c8
-rw-r--r--emu/Plan9/win.c6
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){