aboutsummaryrefslogtreecommitdiffstats
path: root/extras/mini-os/arch/x86/setup.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-01-17 14:41:44 +0000
committerKeir Fraser <keir.fraser@citrix.com>2008-01-17 14:41:44 +0000
commit22e39d084eaa3b058ec34964156511fe963ce4d4 (patch)
tree0566e56ab0131abd998692127a2deea8d845a17d /extras/mini-os/arch/x86/setup.c
parente2edfe6c73a287989911630a070c3e6c1137446f (diff)
downloadxen-22e39d084eaa3b058ec34964156511fe963ce4d4.tar.gz
xen-22e39d084eaa3b058ec34964156511fe963ce4d4.tar.bz2
xen-22e39d084eaa3b058ec34964156511fe963ce4d4.zip
minios: make stack size configurable
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com> Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
Diffstat (limited to 'extras/mini-os/arch/x86/setup.c')
-rw-r--r--extras/mini-os/arch/x86/setup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/extras/mini-os/arch/x86/setup.c b/extras/mini-os/arch/x86/setup.c
index 8106941140..066c87f5b7 100644
--- a/extras/mini-os/arch/x86/setup.c
+++ b/extras/mini-os/arch/x86/setup.c
@@ -45,7 +45,7 @@ union start_info_union start_info_union;
* Just allocate the kernel stack here. SS:ESP is set up to point here
* in head.S.
*/
-char stack[2*8192];
+char stack[2*STACK_SIZE];
extern char shared_info[PAGE_SIZE];
@@ -102,7 +102,7 @@ arch_init(start_info_t *si)
void
arch_print_info(void)
{
- printk(" stack: %p-%p\n", stack, stack + 2*8192);
+ printk(" stack: %p-%p\n", stack, stack + sizeof(stack));
}