From: Matt Fleming Date: Thu, 13 Mar 2014 14:58:42 +0000 (+0000) Subject: x86/efi: Preserve segment registers in mixed mode X-Git-Tag: v3.15-rc1~173^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e10848a26a962e404ac00c897dfe54f14290806d;p=pandora-kernel.git x86/efi: Preserve segment registers in mixed mode I was triggering a #GP(0) from userland when running with CONFIG_EFI_MIXED and CONFIG_IA32_EMULATION, from what looked like register corruption. Turns out that the mixed mode code was trashing the contents of %ds, %es and %ss in __efi64_thunk(). Save and restore the contents of these segment registers across the call to __efi64_thunk() so that we don't corrupt the CPU context. Signed-off-by: Matt Fleming --- Reading git-diff-tree failed