summaryrefslogtreecommitdiff
path: root/trapasm.S
diff options
context:
space:
mode:
authorrsc <rsc>2009-05-31 01:12:08 +0000
committerrsc <rsc>2009-05-31 01:12:08 +0000
commit7b644318dd3b17fe5ec0229db956119986082738 (patch)
tree1e60a8628081eb2833a58d73903ff1fd7f6a1bbe /trapasm.S
parente97519a6d2efd56eb5b5ff2e4c4b20048a33c7af (diff)
downloadxv6-labs-7b644318dd3b17fe5ec0229db956119986082738.tar.gz
xv6-labs-7b644318dd3b17fe5ec0229db956119986082738.tar.bz2
xv6-labs-7b644318dd3b17fe5ec0229db956119986082738.zip
clean up %fs %gs use
Diffstat (limited to 'trapasm.S')
-rw-r--r--trapasm.S3
1 files changed, 0 insertions, 3 deletions
diff --git a/trapasm.S b/trapasm.S
index 59fca57..983163d 100644
--- a/trapasm.S
+++ b/trapasm.S
@@ -13,10 +13,7 @@ alltraps:
pushal
# Set up data and per-cpu segments.
- # Can find out KDATA from %ss.
- # Assume that KCPU is KDATA+1.
movw $(SEG_KDATA<<3), %ax
- movw %ss, %ax
movw %ax, %ds
movw %ax, %es
movw $(SEG_KCPU<<3), %ax