Break TSS out of GDT.
[pintos-anon] / src / threads / thread.c
index 4b848038a0b9ac03c6a23a72a98a62178b88edb2..fed6b841aded48864edee8307fec6fb6090c87ae 100644 (file)
@@ -4,6 +4,7 @@
 #include "interrupt.h"
 #include "intr-stubs.h"
 #include "lib.h"
+#include "gdt.h"
 #include "mmu.h"
 #include "palloc.h"
 #include "random.h"
@@ -135,7 +136,7 @@ thread_execute (const char *filename)
   if_->ds = SEL_UDSEG;
   if_->eip = start;
   if_->cs = SEL_UCSEG;
-  if_->eflags = FLAG_IF | 2;
+  if_->eflags = FLAG_IF | FLAG_MBS;
   if_->esp = PHYS_BASE;
   if_->ss = SEL_UDSEG;