Skip to contentSkip to conversation

Deprecate obsolete ldt accessors

PATCH In review Zachary Amsden 1 participant 1 message Nov 10, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 5/10 Deprecate obsolete ldt accessors

Old accessors to fetch LDT descriptors are unused and outdated and in the wrong header file.

include/asm-i386/system.h +0 -16
Index: linux-2.6.14/include/asm-i386/system.h
===================================================================
@@ -56,22 +56,6 @@
 #define set_base(ldt,base) _set_base( ((char *)&(ldt)) , (base) )
 #define set_limit(ldt,limit) _set_limit( ((char *)&(ldt)) , ((limit)-1)>>12 )
 
-static inline unsigned long _get_base(char * addr)
-{
-	unsigned long __base;
-	__asm__("movb %3,%%dh\n\t"
-		"movb %2,%%dl\n\t"
-		"shll $16,%%edx\n\t"
-		"movw %1,%%dx"
-		:"=&d" (__base)
-		:"m" (*((addr)+2)),
-		 "m" (*((addr)+4)),
-		 "m" (*((addr)+7)));
-	return __base;
-}
-
-#define get_base(ldt) _get_base( ((char *)&(ldt)) )
-
 /*
  * Load a segment. Fall back on loading the zero
  * segment if something goes wrong..