aboutsummaryrefslogtreecommitdiffstats
path: root/test/testdyn.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-11-29 10:54:24 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-11-29 10:54:24 +0000
commitb3e92dc72078603137a7182759419e2b801755b9 (patch)
treef6a55965ea67966ed2cb283ea7830a428878818d /test/testdyn.c
parent4c4689df98554b3089d1dd66c60f92deab9d1603 (diff)
downloadChibiOS-b3e92dc72078603137a7182759419e2b801755b9.tar.gz
ChibiOS-b3e92dc72078603137a7182759419e2b801755b9.tar.bz2
ChibiOS-b3e92dc72078603137a7182759419e2b801755b9.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@521 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test/testdyn.c')
-rw-r--r--test/testdyn.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/testdyn.c b/test/testdyn.c
index 0751e052a..37b6b9bc4 100644
--- a/test/testdyn.c
+++ b/test/testdyn.c
@@ -48,9 +48,9 @@ static void dyn1_execute(void) {
/* Test skipped if the heap is already fragmented. */
if ((n = chHeapStatus(&sz)) == 1) {
/* Starting threads from the heap. */
- threads[0] = chThdCreateFromHeap(UserStackSize(THREADS_STACK_SIZE),
+ threads[0] = chThdCreateFromHeap(THD_WA_SIZE(THREADS_STACK_SIZE),
prio-1, thread, "A");
- threads[1] = chThdCreateFromHeap(UserStackSize(THREADS_STACK_SIZE),
+ threads[1] = chThdCreateFromHeap(THD_WA_SIZE(THREADS_STACK_SIZE),
prio-2, thread, "B");
test_assert((threads[0] != NULL) &&
@@ -88,7 +88,7 @@ static char *dyn2_gettest(void) {
static void dyn2_setup(void) {
- chPoolInit(&mp1, UserStackSize(THREADS_STACK_SIZE));
+ chPoolInit(&mp1, THD_WA_SIZE(THREADS_STACK_SIZE));
}
static void dyn2_teardown(void) {