Now includes arch_config.h instead of arch_cpu.h (because the info contained therein has moved).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8901 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
c2d416e259
commit
327981c3d8
@ -17,7 +17,7 @@
|
|||||||
#include <sem.h>
|
#include <sem.h>
|
||||||
#include <port.h>
|
#include <port.h>
|
||||||
#include <cpu.h>
|
#include <cpu.h>
|
||||||
#include <arch/cpu.h>
|
#include <arch_config.h>
|
||||||
#include <sys/resource.h>
|
#include <sys/resource.h>
|
||||||
#include <fd.h>
|
#include <fd.h>
|
||||||
#include <fs/node_monitor.h>
|
#include <fs/node_monitor.h>
|
||||||
|
@ -1,14 +1,17 @@
|
|||||||
/*
|
/*
|
||||||
** Copyright 2003, Marcus Overhagen. All rights reserved.
|
** Copyright 2003, Marcus Overhagen. All rights reserved.
|
||||||
** Distributed under the terms of the OpenBeOS License.
|
** Distributed under the terms of the Haiku License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <SupportDefs.h>
|
#include <SupportDefs.h>
|
||||||
|
|
||||||
#include <arch_cpu.h>
|
#include <arch_config.h>
|
||||||
#include <syscalls.h>
|
#include <syscalls.h>
|
||||||
|
|
||||||
|
|
||||||
#ifdef ATOMIC_FUNCS_ARE_SYSCALLS
|
#ifdef ATOMIC_FUNCS_ARE_SYSCALLS
|
||||||
|
|
||||||
int32
|
int32
|
||||||
atomic_set(vint32 *value, int32 newValue)
|
atomic_set(vint32 *value, int32 newValue)
|
||||||
{
|
{
|
||||||
@ -44,9 +47,11 @@ atomic_get(vint32 *value)
|
|||||||
{
|
{
|
||||||
return _kern_atomic_get(value);
|
return _kern_atomic_get(value);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
#endif /* ATOMIC_FUNCS_ARE_SYSCALLS */
|
||||||
|
|
||||||
#ifdef ATOMIC64_FUNCS_ARE_SYSCALLS
|
#ifdef ATOMIC64_FUNCS_ARE_SYSCALLS
|
||||||
|
|
||||||
int64
|
int64
|
||||||
atomic_set64(vint64 *value, int64 newValue)
|
atomic_set64(vint64 *value, int64 newValue)
|
||||||
{
|
{
|
||||||
@ -82,4 +87,5 @@ atomic_get64(vint64 *value)
|
|||||||
{
|
{
|
||||||
return _kern_atomic_get64(value);
|
return _kern_atomic_get64(value);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
#endif /* ATOMIC64_FUNCS_ARE_SYSCALLS */
|
||||||
|
Loading…
Reference in New Issue
Block a user