Added private system arch specific arch_cpu_defs.h header, currently defining

only a SPINLOCK_PAUSE() macro.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36351 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2010-04-19 14:16:48 +00:00
parent 2f1e62186e
commit 45b01eb841
5 changed files with 60 additions and 0 deletions

View File

@ -0,0 +1,12 @@
/*
* Copyright 2010, Ingo Weinhold, ingo_weinhold@gmx.de.
* Distributed under the terms of the MIT License.
*/
#ifndef _SYSTEM_ARCH_ARM_DEFS_H
#define _SYSTEM_ARCH_ARM_DEFS_H
#define SPINLOCK_PAUSE() do {} while (false)
#endif /* _SYSTEM_ARCH_ARM_DEFS_H */

View File

@ -0,0 +1,12 @@
/*
* Copyright 2010, Ingo Weinhold, ingo_weinhold@gmx.de.
* Distributed under the terms of the MIT License.
*/
#ifndef _SYSTEM_ARCH_M68K_DEFS_H
#define _SYSTEM_ARCH_M68K_DEFS_H
#define SPINLOCK_PAUSE() do {} while (false)
#endif /* _SYSTEM_ARCH_M68K_DEFS_H */

View File

@ -0,0 +1,12 @@
/*
* Copyright 2010, Ingo Weinhold, ingo_weinhold@gmx.de.
* Distributed under the terms of the MIT License.
*/
#ifndef _SYSTEM_ARCH_MIPSEL_DEFS_H
#define _SYSTEM_ARCH_MIPSEL_DEFS_H
#define SPINLOCK_PAUSE() do {} while (false)
#endif /* _SYSTEM_ARCH_MIPSEL_DEFS_H */

View File

@ -0,0 +1,12 @@
/*
* Copyright 2010, Ingo Weinhold, ingo_weinhold@gmx.de.
* Distributed under the terms of the MIT License.
*/
#ifndef _SYSTEM_ARCH_PPC_DEFS_H
#define _SYSTEM_ARCH_PPC_DEFS_H
#define SPINLOCK_PAUSE() do {} while (false)
#endif /* _SYSTEM_ARCH_PPC_DEFS_H */

View File

@ -0,0 +1,12 @@
/*
* Copyright 2010, Ingo Weinhold, ingo_weinhold@gmx.de.
* Distributed under the terms of the MIT License.
*/
#ifndef _SYSTEM_ARCH_X86_DEFS_H
#define _SYSTEM_ARCH_X86_DEFS_H
#define SPINLOCK_PAUSE() asm volatile("pause;")
#endif /* _SYSTEM_ARCH_X86_DEFS_H */