diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/asm-um/processor-x86_64.h |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'include/asm-um/processor-x86_64.h')
-rw-r--r-- | include/asm-um/processor-x86_64.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/include/asm-um/processor-x86_64.h b/include/asm-um/processor-x86_64.h new file mode 100644 index 000000000000..a1ae3a4cd938 --- /dev/null +++ b/include/asm-um/processor-x86_64.h | |||
@@ -0,0 +1,44 @@ | |||
1 | /* | ||
2 | * Copyright 2003 PathScale, Inc. | ||
3 | * | ||
4 | * Licensed under the GPL | ||
5 | */ | ||
6 | |||
7 | #ifndef __UM_PROCESSOR_X86_64_H | ||
8 | #define __UM_PROCESSOR_X86_64_H | ||
9 | |||
10 | #include "asm/arch/user.h" | ||
11 | |||
12 | struct arch_thread { | ||
13 | }; | ||
14 | |||
15 | /* REP NOP (PAUSE) is a good thing to insert into busy-wait loops. */ | ||
16 | extern inline void rep_nop(void) | ||
17 | { | ||
18 | __asm__ __volatile__("rep;nop": : :"memory"); | ||
19 | } | ||
20 | |||
21 | #define cpu_relax() rep_nop() | ||
22 | |||
23 | #define INIT_ARCH_THREAD { } | ||
24 | |||
25 | #define current_text_addr() \ | ||
26 | ({ void *pc; __asm__("movq $1f,%0\n1:":"=g" (pc)); pc; }) | ||
27 | |||
28 | #define ARCH_IS_STACKGROW(address) \ | ||
29 | (address + 128 >= UPT_SP(¤t->thread.regs.regs)) | ||
30 | |||
31 | #include "asm/processor-generic.h" | ||
32 | |||
33 | #endif | ||
34 | |||
35 | /* | ||
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: | ||
44 | */ | ||