From: Jeremy Fitzhardinge Date: Wed, 25 Jun 2008 04:19:25 +0000 (-0400) Subject: x86: use __KERNEL_DS as SS when returning to a kernel thread X-Git-Tag: v2.6.27-rc1~1106^2~127 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e04e0a630d8b5c621b3a8e70ff20db737d3a5728;p=pandora-kernel.git x86: use __KERNEL_DS as SS when returning to a kernel thread This is needed when the kernel is running on RING3, such as under Xen. x86_64 has a weird feature that makes it #GP on iret when SS is a null descriptor. This need to be tested on bare metal to make sure it doesn't cause any problems. AMD specs say SS is always ignored (except on iret?). Signed-off-by: Eduardo Habkost Signed-off-by: Jeremy Fitzhardinge Cc: xen-devel Cc: Stephen Tweedie Cc: Eduardo Habkost Cc: Mark McLoughlin Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed