Intel IA-32 User Manual

Page of 636
5-46 Vol. 3A
INTERRUPT AND EXCEPTION HANDLING
exception. The stack fault handler should thus 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 thi
s chapter for additional information on how to handle this situation.)