diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2007-11-23 16:22:13 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2007-11-23 16:22:13 +0000 |
commit | 8d71c3dfb8f23ff68a03e6640cc4a8c40d25ea99 (patch) | |
tree | 6297d0de7047c4152d16f56c811f7c9028e5cc4c /extras/mini-os/arch/x86/setup.c | |
parent | 255c12e851df35eded674926ee558484587ebff9 (diff) | |
download | xen-8d71c3dfb8f23ff68a03e6640cc4a8c40d25ea99.tar.gz xen-8d71c3dfb8f23ff68a03e6640cc4a8c40d25ea99.tar.bz2 xen-8d71c3dfb8f23ff68a03e6640cc4a8c40d25ea99.zip |
[Mini-OS] Fix x86 initial stack alignment
This fixes the initial stack alignment for x86, which is required for
current to return a fine NULL instead of a random value or possibly
crash during initialization.
Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
Signed-off-by: Samuel Thibault <samuel.thibault@citrix.com>
Diffstat (limited to 'extras/mini-os/arch/x86/setup.c')
-rw-r--r-- | extras/mini-os/arch/x86/setup.c | 4 |
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 db24b41ebc..8106941140 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[8192]; +char stack[2*8192]; 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 + 8192); + printk(" stack: %p-%p\n", stack, stack + 2*8192); } |