ARM: OMAP2+: Prepare to move GPMC to drivers by platform data header
[linux/fpc-iii.git] / arch / x86 / um / asm / processor.h
blob2a206d2b14ab55a325236b9a871897d84b3367f4
1 #ifndef __UM_PROCESSOR_H
2 #define __UM_PROCESSOR_H
4 /* include faultinfo structure */
5 #include <sysdep/faultinfo.h>
7 #ifdef CONFIG_X86_32
8 # include "processor_32.h"
9 #else
10 # include "processor_64.h"
11 #endif
13 #define KSTK_EIP(tsk) KSTK_REG(tsk, HOST_IP)
14 #define KSTK_ESP(tsk) KSTK_REG(tsk, HOST_SP)
15 #define KSTK_EBP(tsk) KSTK_REG(tsk, HOST_BP)
17 #define ARCH_IS_STACKGROW(address) \
18 (address + 65536 + 32 * sizeof(unsigned long) >= UPT_SP(&current->thread.regs.regs))
20 #include <asm/user.h>
22 /* REP NOP (PAUSE) is a good thing to insert into busy-wait loops. */
23 static inline void rep_nop(void)
25 __asm__ __volatile__("rep;nop": : :"memory");
28 #define cpu_relax() rep_nop()
29 #define cpu_relax_lowlatency() cpu_relax()
31 #include <asm/processor-generic.h>
33 #endif