Author: bonefish Date: 2010-04-19 16:16:48 +0200 (Mon, 19 Apr 2010) New Revision: 36351 Changeset: http://dev.haiku-os.org/changeset/36351/haiku Added: haiku/trunk/headers/private/system/arch/arm/arch_cpu_defs.h haiku/trunk/headers/private/system/arch/m68k/arch_cpu_defs.h haiku/trunk/headers/private/system/arch/mipsel/arch_cpu_defs.h haiku/trunk/headers/private/system/arch/ppc/arch_cpu_defs.h haiku/trunk/headers/private/system/arch/x86/arch_cpu_defs.h Log: Added private system arch specific arch_cpu_defs.h header, currently defining only a SPINLOCK_PAUSE() macro. Added: haiku/trunk/headers/private/system/arch/arm/arch_cpu_defs.h =================================================================== --- haiku/trunk/headers/private/system/arch/arm/arch_cpu_defs.h (rev 0) +++ haiku/trunk/headers/private/system/arch/arm/arch_cpu_defs.h 2010-04-19 14:16:48 UTC (rev 36351) @@ -0,0 +1,12 @@ +/* + * Copyright 2010, Ingo Weinhold, ingo_weinhold@xxxxxxx + * 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 */ Added: haiku/trunk/headers/private/system/arch/m68k/arch_cpu_defs.h =================================================================== --- haiku/trunk/headers/private/system/arch/m68k/arch_cpu_defs.h (rev 0) +++ haiku/trunk/headers/private/system/arch/m68k/arch_cpu_defs.h 2010-04-19 14:16:48 UTC (rev 36351) @@ -0,0 +1,12 @@ +/* + * Copyright 2010, Ingo Weinhold, ingo_weinhold@xxxxxxx + * 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 */ Added: haiku/trunk/headers/private/system/arch/mipsel/arch_cpu_defs.h =================================================================== --- haiku/trunk/headers/private/system/arch/mipsel/arch_cpu_defs.h (rev 0) +++ haiku/trunk/headers/private/system/arch/mipsel/arch_cpu_defs.h 2010-04-19 14:16:48 UTC (rev 36351) @@ -0,0 +1,12 @@ +/* + * Copyright 2010, Ingo Weinhold, ingo_weinhold@xxxxxxx + * 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 */ Added: haiku/trunk/headers/private/system/arch/ppc/arch_cpu_defs.h =================================================================== --- haiku/trunk/headers/private/system/arch/ppc/arch_cpu_defs.h (rev 0) +++ haiku/trunk/headers/private/system/arch/ppc/arch_cpu_defs.h 2010-04-19 14:16:48 UTC (rev 36351) @@ -0,0 +1,12 @@ +/* + * Copyright 2010, Ingo Weinhold, ingo_weinhold@xxxxxxx + * 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 */ Added: haiku/trunk/headers/private/system/arch/x86/arch_cpu_defs.h =================================================================== --- haiku/trunk/headers/private/system/arch/x86/arch_cpu_defs.h (rev 0) +++ haiku/trunk/headers/private/system/arch/x86/arch_cpu_defs.h 2010-04-19 14:16:48 UTC (rev 36351) @@ -0,0 +1,12 @@ +/* + * Copyright 2010, Ingo Weinhold, ingo_weinhold@xxxxxxx + * 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 */