Moved definition of the PAUSE macro to <cpu.h>, respectively

<arch/cpu.h>.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28221 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2008-10-17 16:53:31 +00:00
parent 7b8683b252
commit 78c90d44ca
4 changed files with 13 additions and 14 deletions
@@ -17,6 +17,10 @@
#endif // !_ASSEMBLER
#undef PAUSE
#define PAUSE() asm volatile ("pause;")
// MSR registers (possibly Intel specific)
#define IA32_MSR_APIC_BASE 0x1b
+7 -1
View File
@@ -15,6 +15,12 @@
#include <arch/cpu.h>
// define PAUSE, if not done in arch/cpu.h
#ifndef PAUSE
# define PAUSE()
#endif
/* CPU local data structure */
typedef struct cpu_ent {
@@ -30,7 +36,7 @@ typedef struct cpu_ent {
bigtime_t last_user_time;
bool disabled;
// arch-specific stuff
arch_cpu_info arch;
} cpu_ent __attribute__((aligned(64)));