summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cesar/lib/test/mbox/src/mbox.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/cesar/lib/test/mbox/src/mbox.c b/cesar/lib/test/mbox/src/mbox.c
index 84fb090f1b..4f252538c2 100644
--- a/cesar/lib/test/mbox/src/mbox.c
+++ b/cesar/lib/test/mbox/src/mbox.c
@@ -21,11 +21,11 @@
#include <cyg/infra/diag.h>
#include "string.h"
-u8 thread1_stack [1024];
+u8 thread1_stack [CYGNUM_HAL_STACK_SIZE_TYPICAL];
cyg_thread thread1;
cyg_handle_t thread1_handle;
-u8 thread2_stack [1024];
+u8 thread2_stack [CYGNUM_HAL_STACK_SIZE_TYPICAL];
cyg_thread thread2;
cyg_handle_t thread2_handle;
@@ -106,12 +106,14 @@ cyg_user_start (void)
{
cyg_thread_create(9, thread1_entry_function,
0, "Thread1", thread1_stack,
- 1024, &thread1_handle,
+ CYGNUM_HAL_STACK_SIZE_TYPICAL,
+ &thread1_handle,
&thread1);
cyg_thread_create(9, thread2_entry_function,
0, "Thread2", thread2_stack,
- 1024, &thread2_handle,
+ CYGNUM_HAL_STACK_SIZE_TYPICAL,
+ &thread2_handle,
&thread2);
mbox_init (&mbox);