diff options
author | Zachary Amsden <zach@vmware.com> | 2006-01-06 03:11:54 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-06 11:33:35 -0500 |
commit | 3fae1c37eea98097de34ba665796fea93b29f4aa (patch) | |
tree | bc31e7e6a3b88f422a70c1d936a806625dcab137 /include/asm-i386 | |
parent | 99022c4695d3f45fcf7f3827aa46dd2d9e53e365 (diff) |
[PATCH] x86: Deprecate obsolete ldt accessors
Old accessors to fetch LDT descriptors are unused and outdated and in the
wrong header file.
Signed-off-by: Zachary Amsden <zach@vmware.com>
Cc: "Seth, Rohit" <rohit.seth@intel.com>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-i386')
-rw-r--r-- | include/asm-i386/system.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/include/asm-i386/system.h b/include/asm-i386/system.h index 88b4d5c6f37a..24cc0c8fe341 100644 --- a/include/asm-i386/system.h +++ b/include/asm-i386/system.h | |||
@@ -56,22 +56,6 @@ __asm__ __volatile__ ("movw %%dx,%1\n\t" \ | |||
56 | #define set_base(ldt,base) _set_base( ((char *)&(ldt)) , (base) ) | 56 | #define set_base(ldt,base) _set_base( ((char *)&(ldt)) , (base) ) |
57 | #define set_limit(ldt,limit) _set_limit( ((char *)&(ldt)) , ((limit)-1)>>12 ) | 57 | #define set_limit(ldt,limit) _set_limit( ((char *)&(ldt)) , ((limit)-1)>>12 ) |
58 | 58 | ||
59 | static inline unsigned long _get_base(char * addr) | ||
60 | { | ||
61 | unsigned long __base; | ||
62 | __asm__("movb %3,%%dh\n\t" | ||
63 | "movb %2,%%dl\n\t" | ||
64 | "shll $16,%%edx\n\t" | ||
65 | "movw %1,%%dx" | ||
66 | :"=&d" (__base) | ||
67 | :"m" (*((addr)+2)), | ||
68 | "m" (*((addr)+4)), | ||
69 | "m" (*((addr)+7))); | ||
70 | return __base; | ||
71 | } | ||
72 | |||
73 | #define get_base(ldt) _get_base( ((char *)&(ldt)) ) | ||
74 | |||
75 | /* | 59 | /* |
76 | * Load a segment. Fall back on loading the zero | 60 | * Load a segment. Fall back on loading the zero |
77 | * segment if something goes wrong.. | 61 | * segment if something goes wrong.. |