From: Jeremy Fitzhardinge Date: Thu, 7 Dec 2006 01:14:01 +0000 (+0100) Subject: [PATCH] i386: remove default_ldt, and simplify ldt-setting. X-Git-Tag: v2.6.20-rc1~145^2^2~8^2~141 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5e3a0428968dcc1f9318ce1c941a918e99f8b84;p=pandora-kernel.git [PATCH] i386: remove default_ldt, and simplify ldt-setting. This patch removes the default_ldt[] array, as it has been unused since iBCS stopped being supported. This means it is now possible to actually set an empty LDT segment. In order to deal with this, the set_ldt_desc/load_LDT pair has been replaced with a single set_ldt() operation which is responsible for both setting up the LDT descriptor in the GDT, and reloading the LDT register. If there are no LDT entries, the LDT register is loaded with a NULL descriptor. Signed-off-by: Jeremy Fitzhardinge Signed-off-by: Andi Kleen Cc: Andi Kleen Acked-by: Zachary Amsden Signed-off-by: Andrew Morton --- Reading git-diff-tree failed