Intel 64 and IA-32 Architectures Software Developers Manual Volume 3A, System Programming Guide, Part 1
Vol. 3A 5-49
INTERRUPT AND EXCEPTION HANDLING
not rely on being able to use the segment selectors found in the CS, SS, DS, ES, FS,
and GS registers without causing another exception. The exception handler should
check all segment registers before trying to resume the new task; otherwise, general
protection faults may result later under conditions that are more difficult to diagnose.
(See the Program State Change description for “Interrupt 10—Invalid TSS Exception
(#TS)” in this chapter for additional information on how to handle this situation.)