summaryrefslogtreecommitdiff
path: root/kern/sched_asm.S
diff options
context:
space:
mode:
Diffstat (limited to 'kern/sched_asm.S')
-rw-r--r--kern/sched_asm.S9
1 files changed, 7 insertions, 2 deletions
diff --git a/kern/sched_asm.S b/kern/sched_asm.S
index 747598e..7bf8e3b 100644
--- a/kern/sched_asm.S
+++ b/kern/sched_asm.S
@@ -13,8 +13,13 @@
.global set_fs
.type set_fs, %function
set_fs:
- push 0x4(%esp)
- pop %fs
+ mov 0x4(%esp), %fs
+ ret
+
+.global set_gs
+.type set_gs, %function
+set_gs:
+ mov 0x4(%esp), %gs
ret
.macro PERCPU_GETSET name offset