Linux-2.6.12-rc2
[linux-2.6/kvm.git] / include / asm-um / processor-x86_64.h
bloba1ae3a4cd93810ecc1dd07538ba1910ed148c096
1 /*
2 * Copyright 2003 PathScale, Inc.
4 * Licensed under the GPL
5 */
7 #ifndef __UM_PROCESSOR_X86_64_H
8 #define __UM_PROCESSOR_X86_64_H
10 #include "asm/arch/user.h"
12 struct arch_thread {
15 /* REP NOP (PAUSE) is a good thing to insert into busy-wait loops. */
16 extern inline void rep_nop(void)
18 __asm__ __volatile__("rep;nop": : :"memory");
21 #define cpu_relax() rep_nop()
23 #define INIT_ARCH_THREAD { }
25 #define current_text_addr() \
26 ({ void *pc; __asm__("movq $1f,%0\n1:":"=g" (pc)); pc; })
28 #define ARCH_IS_STACKGROW(address) \
29 (address + 128 >= UPT_SP(&current->thread.regs.regs))
31 #include "asm/processor-generic.h"
33 #endif
36 * Overrides for Emacs so that we follow Linus's tabbing style.
37 * Emacs will notice this stuff at the end of the file and automatically
38 * adjust the settings for this buffer only. This must remain at the end
39 * of the file.
40 * ---------------------------------------------------------------------------
41 * Local variables:
42 * c-file-style: "linux"
43 * End: