Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751133AbVKJAjN (ORCPT ); Wed, 9 Nov 2005 19:39:13 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751132AbVKJAjN (ORCPT ); Wed, 9 Nov 2005 19:39:13 -0500 Received: from mailout1.vmware.com ([65.113.40.130]:41481 "EHLO mailout1.vmware.com") by vger.kernel.org with ESMTP id S1751133AbVKJAjM (ORCPT ); Wed, 9 Nov 2005 19:39:12 -0500 Date: Wed, 9 Nov 2005 16:39:11 -0800 Message-Id: <200511100039.jAA0dB1S027774@zach-dev.vmware.com> Subject: [PATCH 5/10] Deprecate obsolete ldt accessors From: Zachary Amsden To: Andrew Morton , Linus Torvalds , Linux Kernel Mailing List , "H. Peter Anvin" , Zwane Mwaikambo , Pratap Subrahmanyam , Christopher Li , "Eric W. Biederman" , Ingo Molnar , Zachary Amsden X-OriginalArrivalTime: 10 Nov 2005 00:39:12.0118 (UTC) FILETIME=[2B66F960:01C5E58F] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1260 Lines: 36 Old accessors to fetch LDT descriptors are unused and outdated and in the wrong header file. Signed-off-by: Zachary Amsden Index: linux-2.6.14/include/asm-i386/system.h =================================================================== --- linux-2.6.14.orig/include/asm-i386/system.h 2005-11-08 03:26:03.000000000 -0800 +++ linux-2.6.14/include/asm-i386/system.h 2005-11-09 01:36:06.000000000 -0800 @@ -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.. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/