1 |
/* ??? thread |
/* ??? thread |
2 |
Copyright 1999, 2000, 2001 Johan Rydberg, jrydberg@opencores.org. |
Copyright 1999, 2000, 2001, 2002 Johan Rydberg, jrydberg@opencores.org. |
3 |
|
|
4 |
This program is free software; you can redistribute it and/or modify |
This program is free software; you can redistribute it and/or modify |
5 |
it under the terms of the GNU General Public License as published by |
it under the terms of the GNU General Public License as published by |
441 |
|
|
442 |
extern void thread_bootstrap_return (void); |
extern void thread_bootstrap_return (void); |
443 |
|
|
444 |
|
/* Return from syscall. KR is return value. */ |
445 |
|
|
446 |
|
extern void thread_syscall_return (kern_return_t kr); |
447 |
|
|
448 |
/* Select next thread to be run ??? on PROCESSOR. This function should be |
/* Select next thread to be run ??? on PROCESSOR. This function should be |
449 |
called with interrupts disabled. */ |
called with interrupts disabled. */ |
450 |
|
|
469 |
|
|
470 |
extern kern_return_t thread_terminate (struct thread *thread); |
extern kern_return_t thread_terminate (struct thread *thread); |
471 |
|
|
472 |
|
/* Assert that the current thread is about to go to sleep until the |
473 |
|
specified event occurs. */ |
474 |
|
|
475 |
|
extern void assert_wait (int event); |
476 |
|
|
477 |
#endif /* thread.h */ |
#endif /* thread.h */ |