On Tue, Jun 16, 2015 at 02:33:10PM -0700, H. Peter Anvin wrote: > On 06/15/2015 09:10 AM, Srinivas Pandruvada wrote: > >> > >> So is it true that we always execute wakeup_pmode_return first after we > >> return > >> from the BIOS? > >> > >> If so then the BIOS touching DS cannot be an issue, as we re-initialize > >> all > >> segment selectors, which reloads the descriptors: > >> > >> ENTRY(wakeup_pmode_return) > >> wakeup_pmode_return: > >> movw $__KERNEL_DS, %ax > >> movw %ax, %ss > >> movw %ax, %ds > >> movw %ax, %es > >> movw %ax, %fs > >> movw %ax, %gs > >> > >> # reload the gdt, as we need the full 32 bit address > >> lidt saved_idt > >> lldt saved_ldt > >> ljmp $(__KERNEL_CS), $1f > >> > > Where does the GDT get initialized? > > -hpa
mit 84e70971e67d97bc2db18a4e76d42846272a54bd Author: Konrad Rzeszutek Wilk <konrad.w...@oracle.com> Date: Fri Apr 5 16:42:22 2013 -0400 x86-32, gdt: Store/load GDT for ACPI S3 or hibernation/resume path is not needed > > > -- > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majord...@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/ -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/