xref: /haiku/src/system/libroot/os/arch/x86/thread.c (revision 5af32e752606778be5dd7379f319fe43cb3f6b8c)
1*5af32e75SAxel Dörfler /*
2*5af32e75SAxel Dörfler  * Copyright 2003-2005, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3*5af32e75SAxel Dörfler  * Distributed under the terms of the MIT License.
4*5af32e75SAxel Dörfler  */
5*5af32e75SAxel Dörfler 
6*5af32e75SAxel Dörfler 
7*5af32e75SAxel Dörfler #include <OS.h>
8*5af32e75SAxel Dörfler #include "syscalls.h"
9*5af32e75SAxel Dörfler 
10*5af32e75SAxel Dörfler 
11*5af32e75SAxel Dörfler // see OS.h from BeOS R5 for the reason why we need this
12*5af32e75SAxel Dörfler // (it's referenced there in the same way we reference _kern_find_thread())
13*5af32e75SAxel Dörfler extern thread_id _kfind_thread_(const char *name);
14*5af32e75SAxel Dörfler 
15*5af32e75SAxel Dörfler 
16*5af32e75SAxel Dörfler thread_id
17*5af32e75SAxel Dörfler _kfind_thread_(const char *name)
18*5af32e75SAxel Dörfler {
19*5af32e75SAxel Dörfler 	return _kern_find_thread(name);
20*5af32e75SAxel Dörfler }
21*5af32e75SAxel Dörfler 
22*5af32e75SAxel Dörfler 
23*5af32e75SAxel Dörfler extern thread_id _kget_thread_stacks_(thread_id thread, uint32 *stacks);
24*5af32e75SAxel Dörfler 
25*5af32e75SAxel Dörfler status_t
26*5af32e75SAxel Dörfler _kget_thread_stacks_(thread_id thread, uint32 *stacks)
27*5af32e75SAxel Dörfler {
28*5af32e75SAxel Dörfler 	// This one is obviously called from the R4.5 startup code. I am not
29*5af32e75SAxel Dörfler 	// exactly sure how it returns its infos, but just returning an
30*5af32e75SAxel Dörfler 	// error seems to work fine as well
31*5af32e75SAxel Dörfler 	return B_ERROR;
32*5af32e75SAxel Dörfler }
33*5af32e75SAxel Dörfler 
34