From 45b01eb84189a623981270a02d21c7a8cb93a9e1 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Mon, 19 Apr 2010 14:16:48 +0000 Subject: [PATCH] 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 --- headers/private/system/arch/arm/arch_cpu_defs.h | 12 ++++++++++++ headers/private/system/arch/m68k/arch_cpu_defs.h | 12 ++++++++++++ headers/private/system/arch/mipsel/arch_cpu_defs.h | 12 ++++++++++++ headers/private/system/arch/ppc/arch_cpu_defs.h | 12 ++++++++++++ headers/private/system/arch/x86/arch_cpu_defs.h | 12 ++++++++++++ 5 files changed, 60 insertions(+) create mode 100644 headers/private/system/arch/arm/arch_cpu_defs.h create mode 100644 headers/private/system/arch/m68k/arch_cpu_defs.h create mode 100644 headers/private/system/arch/mipsel/arch_cpu_defs.h create mode 100644 headers/private/system/arch/ppc/arch_cpu_defs.h create mode 100644 headers/private/system/arch/x86/arch_cpu_defs.h diff --git a/headers/private/system/arch/arm/arch_cpu_defs.h b/headers/private/system/arch/arm/arch_cpu_defs.h new file mode 100644 index 0000000000..180ef73edf --- /dev/null +++ b/headers/private/system/arch/arm/arch_cpu_defs.h @@ -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 */ diff --git a/headers/private/system/arch/m68k/arch_cpu_defs.h b/headers/private/system/arch/m68k/arch_cpu_defs.h new file mode 100644 index 0000000000..c3ddb13811 --- /dev/null +++ b/headers/private/system/arch/m68k/arch_cpu_defs.h @@ -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 */ diff --git a/headers/private/system/arch/mipsel/arch_cpu_defs.h b/headers/private/system/arch/mipsel/arch_cpu_defs.h new file mode 100644 index 0000000000..97d2477c07 --- /dev/null +++ b/headers/private/system/arch/mipsel/arch_cpu_defs.h @@ -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 */ diff --git a/headers/private/system/arch/ppc/arch_cpu_defs.h b/headers/private/system/arch/ppc/arch_cpu_defs.h new file mode 100644 index 0000000000..7191a7bb8a --- /dev/null +++ b/headers/private/system/arch/ppc/arch_cpu_defs.h @@ -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 */ diff --git a/headers/private/system/arch/x86/arch_cpu_defs.h b/headers/private/system/arch/x86/arch_cpu_defs.h new file mode 100644 index 0000000000..e10ef985d4 --- /dev/null +++ b/headers/private/system/arch/x86/arch_cpu_defs.h @@ -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 */