summaryrefslogtreecommitdiff
path: root/bootasm.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 /bootasm.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 'bootasm.S')
-rw-r--r--bootasm.S3
1 files changed, 1 insertions, 2 deletions
diff --git a/bootasm.S b/bootasm.S
index 9c4a9b2..4b2e012 100644
--- a/bootasm.S
+++ b/bootasm.S
@@ -7,7 +7,6 @@
#define SEG_KCODE 1 // kernel code
#define SEG_KDATA 2 // kernel data+stack
-#define SEG_KCPU 3 // kernel per-cpu data
#define CR0_PE 1 // protected mode enable bit
@@ -63,7 +62,7 @@ start32:
movw %ax, %ds # -> DS: Data Segment
movw %ax, %es # -> ES: Extra Segment
movw %ax, %ss # -> SS: Stack Segment
- movw $(SEG_KCPU<<3), %ax # Our per-cpu segment selector
+ movw $0, %ax # Zero segments not ready for use
movw %ax, %fs # -> FS
movw %ax, %gs # -> GS