projects
/
pintos-anon
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9eb8439
)
Comments.
author
Ben Pfaff
<blp@cs.stanford.edu>
Sat, 11 Sep 2004 22:05:30 +0000
(22:05 +0000)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Sat, 11 Sep 2004 22:05:30 +0000
(22:05 +0000)
src/threads/loader.S
patch
|
blob
|
history
diff --git
a/src/threads/loader.S
b/src/threads/loader.S
index 3d440d20d58d2b30c3228c65c278a82cf8d51893..704b1d9b2f76a93e3d2e20a31b375562a22f65b9 100644
(file)
--- a/
src/threads/loader.S
+++ b/
src/threads/loader.S
@@
-67,12
+67,16
@@
cli
cld
-# Set up segment registers and stack.
-# Stack grows downward starting from us.
+# Set up data segments and stack.
subw %ax, %ax
movw %ax, %es
movw %ax, %ds
+
+# Stack grows downward starting from us.
+# We don't ever use the stack so this is strictly speaking
+# unnecessary.
+
movw %ax, %ss
movw $0x7c00, %sp