diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-01-17 14:41:44 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-01-17 14:41:44 +0000 |
commit | 22e39d084eaa3b058ec34964156511fe963ce4d4 (patch) | |
tree | 0566e56ab0131abd998692127a2deea8d845a17d /extras/mini-os/arch/ia64 | |
parent | e2edfe6c73a287989911630a070c3e6c1137446f (diff) | |
download | xen-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/ia64')
-rw-r--r-- | extras/mini-os/arch/ia64/sched.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/extras/mini-os/arch/ia64/sched.c b/extras/mini-os/arch/ia64/sched.c index 64052b6fc5..bf1095686a 100644 --- a/extras/mini-os/arch/ia64/sched.c +++ b/extras/mini-os/arch/ia64/sched.c @@ -40,11 +40,11 @@ arch_create_thread(char *name, void (*function)(void *), void *data) struct thread* _thread; _thread = (struct thread*)_xmalloc(sizeof(struct thread), 16); - /* Allocate 2 pages for stack, stack will be 2pages aligned */ - _thread->stack = (char *)alloc_pages(1); + /* Allocate pages for stack, stack will be aligned */ + _thread->stack = (char *)alloc_pages(STACK_SIZE_PAGE_ORDER); _thread->name = name; memset((void*)&(_thread->regs), 0, sizeof(_thread->regs)); - _thread->regs.sp = ((uint64_t)_thread->stack) + 2 * PAGE_SIZE - 16; + _thread->regs.sp = ((uint64_t)_thread->stack) + STACK_SIZE - 16; _thread->regs.bsp = ((uint64_t)_thread->stack) + 0x10; _thread->regs.rp = FDESC_FUNC(thread_starter); _thread->regs.pfs = 0x82; |