Compatibility functions. Actually not needed for PPC Haiku, but it's
easier to define them for now, since they are used unconditionally e.g. in the Tracker sources. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15485 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -5,6 +5,8 @@ UseHeaders $(TARGET_PRIVATE_KERNEL_HEADERS) : true ;
|
|||||||
MergeObject os_arch_$(TARGET_ARCH).o :
|
MergeObject os_arch_$(TARGET_ARCH).o :
|
||||||
atomic.S
|
atomic.S
|
||||||
byteorder.S
|
byteorder.S
|
||||||
|
compatibility.c # only here until the places where those functions are used
|
||||||
|
# are fixed
|
||||||
# systeminfo.c
|
# systeminfo.c
|
||||||
system_time.S
|
system_time.S
|
||||||
thread.c
|
thread.c
|
||||||
|
|||||||
@@ -0,0 +1,44 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2005, Axel Dörfler, [email protected]. All rights reserved.
|
||||||
|
* Distributed under the terms of the MIT License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
// This file includes some known R5 syscalls
|
||||||
|
// ToDo: maybe they should indeed do something...
|
||||||
|
|
||||||
|
#include <SupportDefs.h>
|
||||||
|
|
||||||
|
|
||||||
|
int _kset_mon_limit_(int num);
|
||||||
|
int _kset_fd_limit_(int num);
|
||||||
|
int _kget_cpu_state_(int cpuNum);
|
||||||
|
int _kset_cpu_state_(int cpuNum, int state);
|
||||||
|
|
||||||
|
|
||||||
|
int
|
||||||
|
_kset_mon_limit_(int num)
|
||||||
|
{
|
||||||
|
return B_ERROR;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int
|
||||||
|
_kset_fd_limit_(int num)
|
||||||
|
{
|
||||||
|
return B_ERROR;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int
|
||||||
|
_kget_cpu_state_(int cpuNum)
|
||||||
|
{
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int
|
||||||
|
_kset_cpu_state_(int cpuNum, int state)
|
||||||
|
{
|
||||||
|
return state ? B_OK : B_ERROR;
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user