summaryrefslogtreecommitdiff
path: root/nuttx/sched
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-02-25 18:36:25 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-02-25 18:36:25 +0000
commit92cf55e8394678b98d46e2bc964c7793f190909f (patch)
tree566a4cc513cc2512fa9ef828def44ded28d998e5 /nuttx/sched
parent709f5259f948dd3ee2b7e8b7869b00427a6c97d2 (diff)
downloadpx4-nuttx-92cf55e8394678b98d46e2bc964c7793f190909f.tar.gz
px4-nuttx-92cf55e8394678b98d46e2bc964c7793f190909f.tar.bz2
px4-nuttx-92cf55e8394678b98d46e2bc964c7793f190909f.zip
More Cortex-M0/NUC120 fixes
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5670 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched')
-rw-r--r--nuttx/sched/os_bringup.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/sched/os_bringup.c b/nuttx/sched/os_bringup.c
index 85cb5e627..acf367c97 100644
--- a/nuttx/sched/os_bringup.c
+++ b/nuttx/sched/os_bringup.c
@@ -142,7 +142,7 @@ int os_bringup(void)
g_pgworker = KERNEL_THREAD("pgfill", CONFIG_PAGING_DEFPRIO,
CONFIG_PAGING_STACKSIZE,
(main_t)pg_worker, (FAR char * const *)NULL);
- ASSERT(g_pgworker != ERROR);
+ ASSERT(g_pgworker > 0);
#endif
/* Start the worker thread that will serve as the device driver "bottom-
@@ -155,7 +155,7 @@ int os_bringup(void)
g_work[HPWORK].pid = KERNEL_THREAD("work0", CONFIG_SCHED_WORKPRIORITY,
CONFIG_SCHED_WORKSTACKSIZE,
(main_t)work_hpthread, (FAR char * const *)NULL);
- ASSERT(g_work[HPWORK].pid != ERROR);
+ ASSERT(g_work[HPWORK].pid > 0);
/* Start a lower priority worker thread for other, non-critical continuation
* tasks
@@ -167,7 +167,7 @@ int os_bringup(void)
g_work[LPWORK].pid = KERNEL_THREAD("work1", CONFIG_SCHED_LPWORKPRIORITY,
CONFIG_SCHED_LPWORKSTACKSIZE,
(main_t)work_lpthread, (FAR char * const *)NULL);
- ASSERT(g_work[LPWORK].pid != ERROR);
+ ASSERT(g_work[LPWORK].pid > 0);
#endif
#endif
@@ -183,7 +183,7 @@ int os_bringup(void)
init_taskid = TASK_CREATE("init", SCHED_PRIORITY_DEFAULT,
CONFIG_USERMAIN_STACKSIZE,
(main_t)CONFIG_USER_ENTRYPOINT, (FAR char * const *)NULL);
- ASSERT(init_taskid != ERROR);
+ ASSERT(init_taskid > 0);
/* We an save a few bytes by discarding the IDLE thread's environment. */