* Copyright 2003-2005, Axel DΓΆrfler, axeld@pinc-software.de. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#include <OS.h>
#include "syscalls.h"
thread_id
find_thread(const char *name)
{
if (!name) {
thread_id thread;
__asm__ __volatile__ (
"movl %%fs:4, %%eax \n\t"
: "=a" (thread));
return thread;
}
return _kern_find_thread(name);
}
extern thread_id _kfind_thread_(const char *name);
thread_id
_kfind_thread_(const char *name)
{
return _kern_find_thread(name);
}
extern thread_id _kget_thread_stacks_(thread_id thread, uint32 *stacks);
status_t
_kget_thread_stacks_(thread_id thread, uint32 *stacks)
{
return B_ERROR;
}