summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrans Kaashoek <[email protected]>2011-09-01 12:18:43 -0400
committerFrans Kaashoek <[email protected]>2011-09-01 12:18:43 -0400
commite04329aae8ceff7816569ab663237faedd3e5351 (patch)
treece294fc48114b80cdabc5c0a03b95bc822ba4c85
parent62e3b8a92c6f8840cec8a0db13b2bcad10192b4a (diff)
downloadxv6-labs-e04329aae8ceff7816569ab663237faedd3e5351.tar.gz
xv6-labs-e04329aae8ceff7816569ab663237faedd3e5351.tar.bz2
xv6-labs-e04329aae8ceff7816569ab663237faedd3e5351.zip
Have one definition of kernel stack size
-rw-r--r--entry.S7
1 files changed, 3 insertions, 4 deletions
diff --git a/entry.S b/entry.S
index 4fd85c6..3fe4eb5 100644
--- a/entry.S
+++ b/entry.S
@@ -17,8 +17,7 @@
#include "asm.h"
#include "memlayout.h"
#include "mmu.h"
-
-#define STACK 4096
+#include "param.h"
# Multiboot header. Data to direct multiboot loader.
.p2align 2
@@ -52,7 +51,7 @@ entry:
movl %eax, %cr0
# Set up the stack pointer.
- movl $(stack + STACK), %esp
+ movl $(stack + KSTACKSIZE), %esp
# Jump to main(), and switch to executing at
# high addresses. The indirect call is needed because
@@ -61,4 +60,4 @@ entry:
mov $main, %eax
jmp *%eax
-.comm stack, STACK
+.comm stack, KSTACKSIZE