From 1306c9336eda814223857ecd49da13302c88cde1 Mon Sep 17 00:00:00 2001 From: Antti Kantee Date: Mon, 20 Apr 2015 12:30:18 +0000 Subject: [PATCH] allocate thread stacks the same way on baremetal/xen --- platform/baremetal/sched.c | 6 +++--- platform/xen/xen/sched.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/platform/baremetal/sched.c b/platform/baremetal/sched.c index bbdb1a2..b410e12 100644 --- a/platform/baremetal/sched.c +++ b/platform/baremetal/sched.c @@ -141,15 +141,15 @@ static void stackalloc(void **stack, unsigned long *ss) { - *stack = bmk_platform_allocpg2(BMK_THREAD_STACK_PAGE_ORDER); - *ss = BMK_THREAD_STACKSIZE; + *stack = bmk_platform_allocpg2(bmk_stackpageorder); + *ss = bmk_stacksize; } static void stackfree(struct bmk_thread *thread) { - bmk_platform_freepg2(thread->bt_stackbase, BMK_THREAD_STACK_PAGE_ORDER); + bmk_platform_freepg2(thread->bt_stackbase, bmk_stackpageorder); } static void diff --git a/platform/xen/xen/sched.c b/platform/xen/xen/sched.c index c4c3cc7..e4b7b57 100644 --- a/platform/xen/xen/sched.c +++ b/platform/xen/xen/sched.c @@ -140,15 +140,15 @@ static void stackalloc(void **stack, unsigned long *ss) { - *stack = bmk_platform_allocpg2(STACK_SIZE_PAGE_ORDER); - *ss = STACK_SIZE; + *stack = bmk_platform_allocpg2(bmk_stackpageorder); + *ss = bmk_stacksize; } static void stackfree(struct bmk_thread *thread) { - bmk_platform_freepg2(thread->bt_stackbase, STACK_SIZE_PAGE_ORDER); + bmk_platform_freepg2(thread->bt_stackbase, bmk_stackpageorder); } static void -- 2.39.5