summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--i386/i386/seg.h2
-rw-r--r--i386/i386/tss.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/i386/i386/seg.h b/i386/i386/seg.h
index 7f12cc0..a7f6573 100644
--- a/i386/i386/seg.h
+++ b/i386/i386/seg.h
@@ -146,7 +146,7 @@ MACH_INLINE void lidt(struct pseudo_descriptor *pdesc)
}
MACH_INLINE void lldt(unsigned short ldt_selector)
{
- __asm volatile("lldt %w0" : : "r" (ldt_selector));
+ __asm volatile("lldt %w0" : : "r" (ldt_selector) : "memory");
}
#ifdef CODE16
diff --git a/i386/i386/tss.h b/i386/i386/tss.h
index ee0d612..ff25f21 100644
--- a/i386/i386/tss.h
+++ b/i386/i386/tss.h
@@ -83,7 +83,7 @@ struct task_tss
MACH_INLINE void
ltr(unsigned short segment)
{
- __asm volatile("ltr %0" : : "r" (segment));
+ __asm volatile("ltr %0" : : "r" (segment) : "memory");
}
#endif /* _I386_TSS_H_ */