kthread_exit needs no stinkin argument.
This commit is contained in:
parent
39b920eb0c
commit
dd1b3ff97e
@ -254,7 +254,10 @@ kthread_add(void (*func)(void *), void *arg, struct proc *p,
|
|||||||
p = &proc0;
|
p = &proc0;
|
||||||
oldtd = &thread0;
|
oldtd = &thread0;
|
||||||
} else {
|
} else {
|
||||||
oldtd = FIRST_THREAD_IN_PROC(p);
|
if (p == &proc0)
|
||||||
|
oldtd = &thread0;
|
||||||
|
else
|
||||||
|
oldtd = FIRST_THREAD_IN_PROC(p);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Initialize our td */
|
/* Initialize our td */
|
||||||
@ -315,7 +318,7 @@ kthread_add(void (*func)(void *), void *arg, struct proc *p,
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
kthread_exit(int ecode)
|
kthread_exit(void)
|
||||||
{
|
{
|
||||||
thread_exit();
|
thread_exit();
|
||||||
}
|
}
|
||||||
|
@ -68,7 +68,7 @@ int kproc_kthread_add(void (*)(void *), void *,
|
|||||||
int kthread_add(void (*)(void *), void *,
|
int kthread_add(void (*)(void *), void *,
|
||||||
struct proc *, struct thread **,
|
struct proc *, struct thread **,
|
||||||
int flags, int pages, const char *, ...) __printflike(7, 8);
|
int flags, int pages, const char *, ...) __printflike(7, 8);
|
||||||
void kthread_exit(int) __dead2;
|
void kthread_exit(void) __dead2;
|
||||||
int kthread_resume(struct thread *);
|
int kthread_resume(struct thread *);
|
||||||
void kthread_shutdown(void *, int);
|
void kthread_shutdown(void *, int);
|
||||||
void kthread_start(const void *);
|
void kthread_start(const void *);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user