summaryrefslogtreecommitdiff
path: root/x86.h
diff options
context:
space:
mode:
authorRuss Cox <rsc@x40.(none)>2009-09-02 10:09:34 -0700
committerRuss Cox <rsc@x40.(none)>2009-09-02 10:09:34 -0700
commitd26025d12463a902133bdc5b60d377d473294a8d (patch)
tree5fd4ea1af4a3ff29167c724605ba091f97b98957 /x86.h
parent7e0cc8e36ea91d0299f375f3b3476ab58ab71dde (diff)
downloadxv6-labs-d26025d12463a902133bdc5b60d377d473294a8d.tar.gz
xv6-labs-d26025d12463a902133bdc5b60d377d473294a8d.tar.bz2
xv6-labs-d26025d12463a902133bdc5b60d377d473294a8d.zip
can set just %gs now.
Diffstat (limited to 'x86.h')
-rw-r--r--x86.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/x86.h b/x86.h
index e754b28..fcd3062 100644
--- a/x86.h
+++ b/x86.h
@@ -104,9 +104,8 @@ xchg(volatile uint *addr, uint newval)
}
static inline void
-loadfsgs(ushort v)
+loadgs(ushort v)
{
- asm volatile("movw %0, %%fs" : : "r" (v));
asm volatile("movw %0, %%gs" : : "r" (v));
}