@@ -11,7 +11,7 @@
/* image of the saved processor state */
struct saved_context {
- u16 es, fs, gs, ss;
+ u16 ds, es, fs, gs, ss;
unsigned long cr0, cr2, cr3, cr4;
u64 misc_enable;
bool misc_enable_saved;
@@ -79,6 +79,7 @@ static void __save_processor_state(struct saved_context *ctxt)
* segment registers
*/
#ifdef CONFIG_X86_32
+ savesegment(ds, ctxt->ds);
savesegment(es, ctxt->es);
savesegment(fs, ctxt->fs);
savesegment(gs, ctxt->gs);
@@ -198,6 +199,7 @@ static void notrace __restore_processor_state(struct saved_context *ctxt)
* segment registers
*/
#ifdef CONFIG_X86_32
+ loadsegment(ds, ctxt->ds);
loadsegment(es, ctxt->es);
loadsegment(fs, ctxt->fs);
loadsegment(gs, ctxt->gs);