diff options
Diffstat (limited to 'include/asm-x86/system_32.h')
-rw-r--r-- | include/asm-x86/system_32.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/include/asm-x86/system_32.h b/include/asm-x86/system_32.h index fb457642ac58..8db478984ed1 100644 --- a/include/asm-x86/system_32.h +++ b/include/asm-x86/system_32.h | |||
@@ -34,28 +34,6 @@ extern struct task_struct * FASTCALL(__switch_to(struct task_struct *prev, struc | |||
34 | "2" (prev), "d" (next)); \ | 34 | "2" (prev), "d" (next)); \ |
35 | } while (0) | 35 | } while (0) |
36 | 36 | ||
37 | /* | ||
38 | * Load a segment. Fall back on loading the zero | ||
39 | * segment if something goes wrong.. | ||
40 | */ | ||
41 | #define loadsegment(seg,value) \ | ||
42 | asm volatile("\n" \ | ||
43 | "1:\t" \ | ||
44 | "mov %0,%%" #seg "\n" \ | ||
45 | "2:\n" \ | ||
46 | ".section .fixup,\"ax\"\n" \ | ||
47 | "3:\t" \ | ||
48 | "pushl $0\n\t" \ | ||
49 | "popl %%" #seg "\n\t" \ | ||
50 | "jmp 2b\n" \ | ||
51 | ".previous\n" \ | ||
52 | ".section __ex_table,\"a\"\n\t" \ | ||
53 | ".align 4\n\t" \ | ||
54 | ".long 1b,3b\n" \ | ||
55 | ".previous" \ | ||
56 | : :"rm" (value)) | ||
57 | |||
58 | |||
59 | static inline void native_clts(void) | 37 | static inline void native_clts(void) |
60 | { | 38 | { |
61 | asm volatile ("clts"); | 39 | asm volatile ("clts"); |