aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--demos/ARM7-AT91SAM7X-GCC/chconf.h12
-rw-r--r--demos/ARM7-AT91SAM7X-WEB-GCC/chconf.h12
-rw-r--r--demos/ARM7-LPC214x-G++/chconf.h12
-rw-r--r--demos/ARM7-LPC214x-GCC-minimal/chconf.h12
-rw-r--r--demos/ARM7-LPC214x-GCC/chconf.h12
-rw-r--r--demos/ARMCM3-STM32F103-GCC/chconf.h12
-rw-r--r--demos/AVR-AT90CANx-GCC/chconf.h12
-rw-r--r--demos/AVR-ATmega128-GCC/chconf.h12
-rw-r--r--demos/MSP430-MSP430x1611-GCC/chconf.h14
-rw-r--r--demos/Win32-MinGW/chconf.h12
-rw-r--r--readme.txt8
-rw-r--r--src/chthreads.c38
-rw-r--r--src/include/threads.h42
-rw-r--r--src/templates/chconf.h12
-rw-r--r--test/testbmk.c28
-rw-r--r--test/testcond.c20
16 files changed, 54 insertions, 216 deletions
diff --git a/demos/ARM7-AT91SAM7X-GCC/chconf.h b/demos/ARM7-AT91SAM7X-GCC/chconf.h
index 33532e535..f8302116d 100644
--- a/demos/ARM7-AT91SAM7X-GCC/chconf.h
+++ b/demos/ARM7-AT91SAM7X-GCC/chconf.h
@@ -84,19 +84,11 @@
* @note requires \p CH_USE_MESSAGES.*/
#define CH_USE_MESSAGES_EVENT
-/** Configuration option: If enabled then the threads have an option to serve
- * messages by priority instead of FIFO order.
+/** Configuration option: If enabled then the threads serve messages by
+ * priority instead of FIFO order.
* @note requires \p CH_USE_MESSAGES.*/
//#define CH_USE_MESSAGES_PRIORITY
-/** Configuration option: if specified then the
- * \p chThdGetExitEventSource() function is included in the kernel.
- * @note requires \p CH_USE_MESSAGES.
- * @note requires \p CH_USE_EVENTS.
- * @deprecated \p THREAD_EXT_EXIT should be used, this functionality will be
- * removed in version 1.0.0.*/
-#define CH_USE_EXIT_EVENT
-
/** Configuration option: if specified then the I/O queues APIs are included
* in the kernel.*/
#define CH_USE_QUEUES
diff --git a/demos/ARM7-AT91SAM7X-WEB-GCC/chconf.h b/demos/ARM7-AT91SAM7X-WEB-GCC/chconf.h
index ddf733411..ed950dd3f 100644
--- a/demos/ARM7-AT91SAM7X-WEB-GCC/chconf.h
+++ b/demos/ARM7-AT91SAM7X-WEB-GCC/chconf.h
@@ -84,19 +84,11 @@
* @note requires \p CH_USE_MESSAGES.*/
#define CH_USE_MESSAGES_EVENT
-/** Configuration option: If enabled then the threads have an option to serve
- * messages by priority instead of FIFO order.
+/** Configuration option: If enabled then the threads serve messages by
+ * priority instead of FIFO order.
* @note requires \p CH_USE_MESSAGES.*/
//#define CH_USE_MESSAGES_PRIORITY
-/** Configuration option: if specified then the
- * \p chThdGetExitEventSource() function is included in the kernel.
- * @note requires \p CH_USE_EVENTS.
- * @deprecated \p THREAD_EXT_EXIT should be used, this functionality will be
- * removed in version 1.0.0.
- */
-#define CH_USE_EXIT_EVENT
-
/** Configuration option: if specified then the I/O queues APIs are included
* in the kernel.*/
#define CH_USE_QUEUES
diff --git a/demos/ARM7-LPC214x-G++/chconf.h b/demos/ARM7-LPC214x-G++/chconf.h
index a6cf96004..2d0a1513f 100644
--- a/demos/ARM7-LPC214x-G++/chconf.h
+++ b/demos/ARM7-LPC214x-G++/chconf.h
@@ -84,19 +84,11 @@
* @note requires \p CH_USE_MESSAGES.*/
#define CH_USE_MESSAGES_EVENT
-/** Configuration option: If enabled then the threads have an option to serve
- * messages by priority instead of FIFO order.
+/** Configuration option: If enabled then the threads serve messages by
+ * priority instead of FIFO order.
* @note requires \p CH_USE_MESSAGES.*/
//#define CH_USE_MESSAGES_PRIORITY
-/** Configuration option: if specified then the
- * \p chThdGetExitEventSource() function is included in the kernel.
- * @note requires \p CH_USE_EVENTS.
- * @deprecated \p THREAD_EXT_EXIT should be used, this functionality will be
- * removed in version 1.0.0.
- */
-#define CH_USE_EXIT_EVENT
-
/** Configuration option: if specified then the I/O queues APIs are included
* in the kernel.*/
#define CH_USE_QUEUES
diff --git a/demos/ARM7-LPC214x-GCC-minimal/chconf.h b/demos/ARM7-LPC214x-GCC-minimal/chconf.h
index af4a62d09..94ff64676 100644
--- a/demos/ARM7-LPC214x-GCC-minimal/chconf.h
+++ b/demos/ARM7-LPC214x-GCC-minimal/chconf.h
@@ -84,19 +84,11 @@
* @note requires \p CH_USE_MESSAGES.*/
//#define CH_USE_MESSAGES_EVENT
-/** Configuration option: If enabled then the threads have an option to serve
- * messages by priority instead of FIFO order.
+/** Configuration option: If enabled then the threads serve messages by
+ * priority instead of FIFO order.
* @note requires \p CH_USE_MESSAGES.*/
//#define CH_USE_MESSAGES_PRIORITY
-/** Configuration option: if specified then the
- * \p chThdGetExitEventSource() function is included in the kernel.
- * @note requires \p CH_USE_EVENTS.
- * @deprecated \p THREAD_EXT_EXIT should be used, this functionality will be
- * removed in version 1.0.0.
- */
-//#define CH_USE_EXIT_EVENT
-
/** Configuration option: if specified then the I/O queues APIs are included
* in the kernel.*/
//#define CH_USE_QUEUES
diff --git a/demos/ARM7-LPC214x-GCC/chconf.h b/demos/ARM7-LPC214x-GCC/chconf.h
index ddf733411..ed950dd3f 100644
--- a/demos/ARM7-LPC214x-GCC/chconf.h
+++ b/demos/ARM7-LPC214x-GCC/chconf.h
@@ -84,19 +84,11 @@
* @note requires \p CH_USE_MESSAGES.*/
#define CH_USE_MESSAGES_EVENT
-/** Configuration option: If enabled then the threads have an option to serve
- * messages by priority instead of FIFO order.
+/** Configuration option: If enabled then the threads serve messages by
+ * priority instead of FIFO order.
* @note requires \p CH_USE_MESSAGES.*/
//#define CH_USE_MESSAGES_PRIORITY
-/** Configuration option: if specified then the
- * \p chThdGetExitEventSource() function is included in the kernel.
- * @note requires \p CH_USE_EVENTS.
- * @deprecated \p THREAD_EXT_EXIT should be used, this functionality will be
- * removed in version 1.0.0.
- */
-#define CH_USE_EXIT_EVENT
-
/** Configuration option: if specified then the I/O queues APIs are included
* in the kernel.*/
#define CH_USE_QUEUES
diff --git a/demos/ARMCM3-STM32F103-GCC/chconf.h b/demos/ARMCM3-STM32F103-GCC/chconf.h
index ddf733411..ed950dd3f 100644
--- a/demos/ARMCM3-STM32F103-GCC/chconf.h
+++ b/demos/ARMCM3-STM32F103-GCC/chconf.h
@@ -84,19 +84,11 @@
* @note requires \p CH_USE_MESSAGES.*/
#define CH_USE_MESSAGES_EVENT
-/** Configuration option: If enabled then the threads have an option to serve
- * messages by priority instead of FIFO order.
+/** Configuration option: If enabled then the threads serve messages by
+ * priority instead of FIFO order.
* @note requires \p CH_USE_MESSAGES.*/
//#define CH_USE_MESSAGES_PRIORITY
-/** Configuration option: if specified then the
- * \p chThdGetExitEventSource() function is included in the kernel.
- * @note requires \p CH_USE_EVENTS.
- * @deprecated \p THREAD_EXT_EXIT should be used, this functionality will be
- * removed in version 1.0.0.
- */
-#define CH_USE_EXIT_EVENT
-
/** Configuration option: if specified then the I/O queues APIs are included
* in the kernel.*/
#define CH_USE_QUEUES
diff --git a/demos/AVR-AT90CANx-GCC/chconf.h b/demos/AVR-AT90CANx-GCC/chconf.h
index 89b01bfae..4900dd240 100644
--- a/demos/AVR-AT90CANx-GCC/chconf.h
+++ b/demos/AVR-AT90CANx-GCC/chconf.h
@@ -84,19 +84,11 @@
* @note requires \p CH_USE_MESSAGES.*/
#define CH_USE_MESSAGES_EVENT
-/** Configuration option: If enabled then the threads have an option to serve
- * messages by priority instead of FIFO order.
+/** Configuration option: If enabled then the threads serve messages by
+ * priority instead of FIFO order.
* @note requires \p CH_USE_MESSAGES.*/
//#define CH_USE_MESSAGES_PRIORITY
-/** Configuration option: if specified then the
- * \p chThdGetExitEventSource() function is included in the kernel.
- * @note requires \p CH_USE_EVENTS.
- * @deprecated \p THREAD_EXT_EXIT should be used, this functionality will be
- * removed in version 1.0.0.
- */
-#define CH_USE_EXIT_EVENT
-
/** Configuration option: if specified then the I/O queues APIs are included
* in the kernel.*/
#define CH_USE_QUEUES
diff --git a/demos/AVR-ATmega128-GCC/chconf.h b/demos/AVR-ATmega128-GCC/chconf.h
index d2a689b62..ea028aed6 100644
--- a/demos/AVR-ATmega128-GCC/chconf.h
+++ b/demos/AVR-ATmega128-GCC/chconf.h
@@ -84,19 +84,11 @@
* @note requires \p CH_USE_MESSAGES.*/
#define CH_USE_MESSAGES_EVENT
-/** Configuration option: If enabled then the threads have an option to serve
- * messages by priority instead of FIFO order.
+/** Configuration option: If enabled then the threads serve messages by
+ * priority instead of FIFO order.
* @note requires \p CH_USE_MESSAGES.*/
//#define CH_USE_MESSAGES_PRIORITY
-/** Configuration option: if specified then the
- * \p chThdGetExitEventSource() function is included in the kernel.
- * @note requires \p CH_USE_EVENTS.
- * @deprecated \p THREAD_EXT_EXIT should be used, this functionality will be
- * removed in version 1.0.0.
- */
-#define CH_USE_EXIT_EVENT
-
/** Configuration option: if specified then the I/O queues APIs are included
* in the kernel.*/
#define CH_USE_QUEUES
diff --git a/demos/MSP430-MSP430x1611-GCC/chconf.h b/demos/MSP430-MSP430x1611-GCC/chconf.h
index c6ca7420a..bf7a9afad 100644
--- a/demos/MSP430-MSP430x1611-GCC/chconf.h
+++ b/demos/MSP430-MSP430x1611-GCC/chconf.h
@@ -89,18 +89,10 @@
* @note requires \p CH_USE_MESSAGES.*/
#define CH_USE_MESSAGES_EVENT
-/** Configuration option: If enabled then the threads have an option to serve
- * messages by priority instead of FIFO order.
+/** Configuration option: If enabled then the threads serve messages by
+ * priority instead of FIFO order.
* @note requires \p CH_USE_MESSAGES.*/
-#define CH_USE_MESSAGES_PRIORITY
-
-/** Configuration option: if specified then the
- * \p chThdGetExitEventSource() function is included in the kernel.
- * @note requires \p CH_USE_EVENTS.
- * @deprecated \p THREAD_EXT_EXIT should be used, this functionality will be
- * removed in version 1.0.0.
- */
-#define CH_USE_EXIT_EVENT
+//#define CH_USE_MESSAGES_PRIORITY
/** Configuration option: if specified then the I/O queues APIs are included
* in the kernel.*/
diff --git a/demos/Win32-MinGW/chconf.h b/demos/Win32-MinGW/chconf.h
index 07ff4d0d5..3187998cc 100644
--- a/demos/Win32-MinGW/chconf.h
+++ b/demos/Win32-MinGW/chconf.h
@@ -84,19 +84,11 @@
* @note requires \p CH_USE_MESSAGES.*/
#define CH_USE_MESSAGES_EVENT
-/** Configuration option: If enabled then the threads have an option to serve
- * messages by priority instead of FIFO order.
+/** Configuration option: If enabled then the threads serve messages by
+ * priority instead of FIFO order.
* @note requires \p CH_USE_MESSAGES.*/
//#define CH_USE_MESSAGES_PRIORITY
-/** Configuration option: if specified then the
- * \p chThdGetExitEventSource() function is included in the kernel.
- * @note requires \p CH_USE_EVENTS.
- * @deprecated \p THREAD_EXT_EXIT should be used, this functionality will be
- * removed in version 1.0.0.
- */
-#define CH_USE_EXIT_EVENT
-
/** Configuration option: if specified then the I/O queues APIs are included
* in the kernel.*/
#define CH_USE_QUEUES
diff --git a/readme.txt b/readme.txt
index 4d3f6bc40..d3b5cf58d 100644
--- a/readme.txt
+++ b/readme.txt
@@ -74,11 +74,17 @@ Win32-MinGW - ChibiOS/RT simulator and demo into a WIN32 process,
*****************************************************************************
*** 1.0.0 RC1 ***
+- FIX: Disabled the configuration option CH_USE_MESSAGES_PRIORITY from the
+ MSP430 demo, the default for this option should be off.
+- Removed deprecated APIs: chThdCreate() and chThdCreateFast(), removed some
+ references to those APIs from the test suite.
+- Removed deprecated configuration feature CH_USE_EXIT_EVENT and the related
+ API chThdGetExitEventSource().
- Added usage note into the readme of the MinGW demo.
*** 0.8.3 ***
- NEW: Introduced new API chThdSleepS() as a macro, no real changes in the
- kernel code.
+ kernel code.
- FIX: The MinGW simulated demo now works again after breaking in 0.8.2
because the changes to the macro names.
- FIX: Adjusted the test suite stack sizes for the MinGW simulated demo, now
diff --git a/src/chthreads.c b/src/chthreads.c
index a1c8a7b4e..14c507bb4 100644
--- a/src/chthreads.c
+++ b/src/chthreads.c
@@ -182,39 +182,6 @@ Thread *chThdCreateFromMemoryPool(MemoryPool *mp, tprio_t prio,
#endif /* defined(CH_USE_DYNAMIC) && defined(CH_USE_WAITEXIT) && defined(CH_USE_MEMPOOLS) */
/**
- * Creates a new thread.
- * @param prio the priority level for the new thread. Usually the threads are
- * created with priority \p NORMALPRIO, priorities
- * can range from \p LOWPRIO to \p HIGHPRIO.
- * @param mode the creation option flags for the thread. The following options
- * can be OR'ed in this parameter:<br>
- * <ul>
- * <li>\p P_SUSPENDED, the thread is created in the
- * \p PRSUSPENDED state and a subsequent call to
- * \p chThdResume() will make it ready for
- * execution.</li>
- * </ul>
- * @param workspace pointer to a working area dedicated to the thread stack
- * @param wsize size of the working area.
- * @param pf the thread function
- * @param arg an argument passed to the thread function. It can be \p NULL.
- * @return The pointer to the \p Thread structure allocated for the
- * thread into the working space area.
- * @note A thread can terminate by calling \p chThdExit() or by simply
- * returning from its main function.
- * @deprecated Please use \p chThdCreateStatic() or \p chThdInit() instead,
- * this function will be removed in version 1.0.0.
- */
-Thread *chThdCreate(tprio_t prio, tmode_t mode, void *workspace,
- size_t wsize, tfunc_t pf, void *arg) {
-
- Thread *tp = chThdInit(workspace, wsize, prio, pf, arg);
- if (mode & P_SUSPENDED)
- return tp;
- return chThdResume(tp);
-}
-
-/**
* Changes the running thread priority, reschedules if necessary.
*
* @param newprio the new priority of the running thread
@@ -324,14 +291,9 @@ void chThdExit(msg_t msg) {
tp->p_exitcode = msg;
THREAD_EXT_EXIT(tp);
#ifdef CH_USE_WAITEXIT
-// while (notempty(&tp->p_waiting))
-// chSchReadyI(list_remove(&tp->p_waiting));
if (tp->p_waiting != NULL)
chSchReadyI(tp->p_waiting);
#endif
-#ifdef CH_USE_EXIT_EVENT
- chEvtBroadcastI(&tp->p_exitesource);
-#endif
chSchGoSleepS(PREXIT);
}
diff --git a/src/include/threads.h b/src/include/threads.h
index c58ddc76a..5b26a6535 100644
--- a/src/include/threads.h
+++ b/src/include/threads.h
@@ -217,30 +217,6 @@ extern "C" {
#define chThdShouldTerminate() (currp->p_flags & P_TERMINATE)
/**
- * Returns the exit event source for the specified thread. The source is
- * signaled when the thread terminates.
- * @param tp the pointer to the thread
- * @note When registering on a thread termination make sure the thread
- * is still alive, if you do that after the thread termination
- * then you would miss the event. There are two ways to ensure
- * this:<br>
- * <ul>
- * <li>Create the thread suspended, register on the event source
- * and then resume the thread (recommended).</li>
- * <li>Create the thread with a lower priority then register on it.
- * This does not work if the hardware is capable of multiple
- * physical threads.</li>
- * </ul>
- * @note You dont need to unregister from a terminated thread because
- * the event source becomes inactive.
- * @note The function is available only if the \p CH_USE_EXIT_EVENT
- * option is enabled in \p chconf.h.
- * @deprecated \p THREAD_EXT_EXIT should be used, this functionality will be
- * removed in version 1.0.0.
- */
-#define chThdGetExitEventSource(tp) (&(tp)->p_exitesource)
-
-/**
* Resumes a thread created with the \p P_SUSPENDED option or suspended with
* \p chThdSuspend().
* @param tp the pointer to the thread
@@ -248,24 +224,6 @@ extern "C" {
#define chThdResumeI(tp) chSchReadyI(tp)
/**
- * Creates a new thread, simplified variant.
- * @param prio the priority level for the new thread. Usually the threads are
- * created with priority \p NORMALPRIO, priorities
- * can range from \p LOWPRIO to \p HIGHPRIO.
- * @param workspace pointer to a working area dedicated to the thread stack
- * @param wsize size of the working area.
- * @param pf the thread function
- * @return the pointer to the \p Thread structure allocated for the
- * thread into the working space area.
- * @note A thread can terminate by calling \p chThdExit() or by simply
- * returning from its main function.
- * @deprecated Please use \p chThdCreateStatic() or \p chThdInit() instead,
- * this function will be removed in version 1.0.0.
- */
-#define chThdCreateFast(prio, workspace, wsize, pf) \
- chThdCreateStatic(workspace, wsize, prio, pf, NULL)
-
-/**
* Suspends the invoking thread for the specified time.
* @param time the delay in system ticks
*/
diff --git a/src/templates/chconf.h b/src/templates/chconf.h
index d59801291..05289b098 100644
--- a/src/templates/chconf.h
+++ b/src/templates/chconf.h
@@ -89,19 +89,11 @@
* @note requires \p CH_USE_MESSAGES.*/
#define CH_USE_MESSAGES_EVENT
-/** Configuration option: If enabled then the threads have an option to serve
- * messages by priority instead of FIFO order.
+/** Configuration option: If enabled then the threads serve messages by
+ * priority instead of FIFO order.
* @note requires \p CH_USE_MESSAGES.*/
#define CH_USE_MESSAGES_PRIORITY
-/** Configuration option: if specified then the
- * \p chThdGetExitEventSource() function is included in the kernel.
- * @note requires \p CH_USE_EVENTS.
- * @deprecated \p THREAD_EXT_EXIT should be used, this functionality will be
- * removed in version 1.0.0.
- */
-#define CH_USE_EXIT_EVENT
-
/** Configuration option: if specified then the I/O queues APIs are included
* in the kernel.*/
#define CH_USE_QUEUES
diff --git a/test/testbmk.c b/test/testbmk.c
index 19775a2d3..3fe32df00 100644
--- a/test/testbmk.c
+++ b/test/testbmk.c
@@ -59,7 +59,7 @@ static char *bmk1_gettest(void) {
static void bmk1_execute(void) {
uint32_t n;
- threads[0] = chThdCreateFast(chThdGetPriority()-1, wa[0], WA_SIZE, thread1);
+ threads[0] = chThdCreateStatic(wa[0], WA_SIZE, chThdGetPriority()-1, thread1, NULL);
n = msg_loop_test(threads[0]);
chThdTerminate(threads[0]);
test_wait_threads();
@@ -85,7 +85,7 @@ static char *bmk2_gettest(void) {
static void bmk2_execute(void) {
uint32_t n;
- threads[0] = chThdCreateFast(chThdGetPriority()+1, wa[0], WA_SIZE, thread1);
+ threads[0] = chThdCreateStatic(wa[0], WA_SIZE, chThdGetPriority()+1, thread1, NULL);
n = msg_loop_test(threads[0]);
chThdTerminate(threads[0]);
test_wait_threads();
@@ -116,11 +116,11 @@ static char *bmk3_gettest(void) {
static void bmk3_execute(void) {
uint32_t n;
- threads[0] = chThdCreateFast(chThdGetPriority()+1, wa[0], WA_SIZE, thread1);
- threads[1] = chThdCreateFast(chThdGetPriority()-2, wa[1], WA_SIZE, thread2);
- threads[2] = chThdCreateFast(chThdGetPriority()-3, wa[2], WA_SIZE, thread2);
- threads[3] = chThdCreateFast(chThdGetPriority()-4, wa[3], WA_SIZE, thread2);
- threads[4] = chThdCreateFast(chThdGetPriority()-5, wa[4], WA_SIZE, thread2);
+ threads[0] = chThdCreateStatic(wa[0], WA_SIZE, chThdGetPriority()+1, thread1, NULL);
+ threads[1] = chThdCreateStatic(wa[1], WA_SIZE, chThdGetPriority()-2, thread2, NULL);
+ threads[2] = chThdCreateStatic(wa[2], WA_SIZE, chThdGetPriority()-3, thread2, NULL);
+ threads[3] = chThdCreateStatic(wa[3], WA_SIZE, chThdGetPriority()-4, thread2, NULL);
+ threads[4] = chThdCreateStatic(wa[4], WA_SIZE, chThdGetPriority()-5, thread2, NULL);
n = msg_loop_test(threads[0]);
chThdTerminate(threads[0]);
test_wait_threads();
@@ -151,7 +151,7 @@ static void bmk4_execute(void) {
test_wait_tick();
test_start_timer(1000);
do {
- chThdWait(chThdCreateFast(prio, wap, WA_SIZE, thread2));
+ chThdWait(chThdCreateStatic(wap, WA_SIZE, prio, thread2, NULL));
n++;
#if defined(WIN32)
ChkIntSources();
@@ -182,7 +182,7 @@ static void bmk5_execute(void) {
test_wait_tick();
test_start_timer(1000);
do {
- chThdCreateFast(prio, wap, WA_SIZE, thread2);
+ chThdCreateStatic(wap, WA_SIZE, prio, thread2, NULL);
n++;
#if defined(WIN32)
ChkIntSources();
@@ -220,11 +220,11 @@ static void bmk6_setup(void) {
static void bmk6_execute(void) {
uint32_t n;
- threads[0] = chThdCreateFast(chThdGetPriority()+1, wa[0], WA_SIZE, thread3);
- threads[1] = chThdCreateFast(chThdGetPriority()+2, wa[1], WA_SIZE, thread3);
- threads[2] = chThdCreateFast(chThdGetPriority()+3, wa[2], WA_SIZE, thread3);
- threads[3] = chThdCreateFast(chThdGetPriority()+4, wa[3], WA_SIZE, thread3);
- threads[4] = chThdCreateFast(chThdGetPriority()+5, wa[4], WA_SIZE, thread3);
+ threads[0] = chThdCreateStatic(wa[0], WA_SIZE, chThdGetPriority()+1, thread3, NULL);
+ threads[1] = chThdCreateStatic(wa[1], WA_SIZE, chThdGetPriority()+2, thread3, NULL);
+ threads[2] = chThdCreateStatic(wa[2], WA_SIZE, chThdGetPriority()+3, thread3, NULL);
+ threads[3] = chThdCreateStatic(wa[3], WA_SIZE, chThdGetPriority()+4, thread3, NULL);
+ threads[4] = chThdCreateStatic(wa[4], WA_SIZE, chThdGetPriority()+5, thread3, NULL);
n = 0;
test_wait_tick();
diff --git a/test/testcond.c b/test/testcond.c
index e202a0d15..cbc304270 100644
--- a/test/testcond.c
+++ b/test/testcond.c
@@ -53,11 +53,11 @@ static void cond1_execute(void) {
// Bacause priority inheritance.
tprio_t prio = chThdGetPriority();
- threads[0] = chThdCreate(prio+1, 0, wa[0], WA_SIZE, thread1, "E");
- threads[1] = chThdCreate(prio+2, 0, wa[1], WA_SIZE, thread1, "D");
- threads[2] = chThdCreate(prio+3, 0, wa[2], WA_SIZE, thread1, "C");
- threads[3] = chThdCreate(prio+4, 0, wa[3], WA_SIZE, thread1, "B");
- threads[4] = chThdCreate(prio+5, 0, wa[4], WA_SIZE, thread1, "A");
+ threads[0] = chThdCreateStatic(wa[0], WA_SIZE, prio+1, thread1, "E");
+ threads[1] = chThdCreateStatic(wa[1], WA_SIZE, prio+2, thread1, "D");
+ threads[2] = chThdCreateStatic(wa[2], WA_SIZE, prio+3, thread1, "C");
+ threads[3] = chThdCreateStatic(wa[3], WA_SIZE, prio+4, thread1, "B");
+ threads[4] = chThdCreateStatic(wa[4], WA_SIZE, prio+5, thread1, "A");
test_assert(prio == chThdGetPriority(), "priority return failure");
chCondSignal(&c1);
chCondSignal(&c1);
@@ -84,11 +84,11 @@ static void cond2_execute(void) {
// Bacause priority inheritance.
tprio_t prio = chThdGetPriority();
- threads[0] = chThdCreate(prio+1, 0, wa[0], WA_SIZE, thread1, "E");
- threads[1] = chThdCreate(prio+2, 0, wa[1], WA_SIZE, thread1, "D");
- threads[2] = chThdCreate(prio+3, 0, wa[2], WA_SIZE, thread1, "C");
- threads[3] = chThdCreate(prio+4, 0, wa[3], WA_SIZE, thread1, "B");
- threads[4] = chThdCreate(prio+5, 0, wa[4], WA_SIZE, thread1, "A");
+ threads[0] = chThdCreateStatic(wa[0], WA_SIZE, prio+1, thread1, "E");
+ threads[1] = chThdCreateStatic(wa[1], WA_SIZE, prio+2, thread1, "D");
+ threads[2] = chThdCreateStatic(wa[2], WA_SIZE, prio+3, thread1, "C");
+ threads[3] = chThdCreateStatic(wa[3], WA_SIZE, prio+4, thread1, "B");
+ threads[4] = chThdCreateStatic(wa[4], WA_SIZE, prio+5, thread1, "A");
test_assert(prio == chThdGetPriority(), "priority return failure");
chCondBroadcast(&c1);
test_wait_threads();