summaryrefslogtreecommitdiff
path: root/nuttx/sched
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-03-20 19:04:01 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-03-20 19:04:01 +0000
commit4edac7e4a38497af50c177c9604806670b76345f (patch)
tree3fc0b2ffac9829ea40db7858e6d2356579e85b4e /nuttx/sched
parentc6fe19aace6705b944dc95a43e27d3269ff813dc (diff)
downloadpx4-nuttx-4edac7e4a38497af50c177c9604806670b76345f.tar.gz
px4-nuttx-4edac7e4a38497af50c177c9604806670b76345f.tar.bz2
px4-nuttx-4edac7e4a38497af50c177c9604806670b76345f.zip
Changes for the SDCC compiler
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@109 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched')
-rw-r--r--nuttx/sched/os_start.c4
-rw-r--r--nuttx/sched/sched_addblocked.c4
-rw-r--r--nuttx/sched/sched_addreadytorun.c4
-rw-r--r--nuttx/sched/sched_setparam.c4
4 files changed, 8 insertions, 8 deletions
diff --git a/nuttx/sched/os_start.c b/nuttx/sched/os_start.c
index f360a1991..740cffa10 100644
--- a/nuttx/sched/os_start.c
+++ b/nuttx/sched/os_start.c
@@ -264,7 +264,7 @@ void os_start(void)
/* Then add the idle task's TCB to the head of the ready to run list */
- dq_addfirst((FAR dq_entry_t*)&g_idletcb, (dq_queue_t*)&g_readytorun);
+ dq_addfirst((FAR dq_entry_t*)&g_idletcb, (FAR dq_queue_t*)&g_readytorun);
/* Initialize the processor-specific portion of the TCB */
@@ -435,7 +435,7 @@ void os_start(void)
/* Remove the first delayed deallocation. */
irqstate_t saved_state = irqsave();
- void *address = (void*)sq_remfirst((sq_queue_t*)&g_delayeddeallocations);
+ void *address = (void*)sq_remfirst((FAR sq_queue_t*)&g_delayeddeallocations);
irqrestore(saved_state);
/* Then deallocate it */
diff --git a/nuttx/sched/sched_addblocked.c b/nuttx/sched/sched_addblocked.c
index 571b532a5..6b1ba3658 100644
--- a/nuttx/sched/sched_addblocked.c
+++ b/nuttx/sched/sched_addblocked.c
@@ -102,13 +102,13 @@ void sched_addblocked(FAR _TCB *btcb, tstate_t task_state)
{
/* Add the task to a prioritized list */
- sched_addprioritized(btcb, (dq_queue_t*)g_tasklisttable[task_state].list);
+ sched_addprioritized(btcb, (FAR dq_queue_t*)g_tasklisttable[task_state].list);
}
else
{
/* Add the task to a non-prioritized list */
- dq_addlast((FAR dq_entry_t*)btcb, (dq_queue_t*)g_tasklisttable[task_state].list);
+ dq_addlast((FAR dq_entry_t*)btcb, (FAR dq_queue_t*)g_tasklisttable[task_state].list);
}
/* Make sure the TCB's state corresponds to the list */
diff --git a/nuttx/sched/sched_addreadytorun.c b/nuttx/sched/sched_addreadytorun.c
index d3b32fef1..cb53aa65e 100644
--- a/nuttx/sched/sched_addreadytorun.c
+++ b/nuttx/sched/sched_addreadytorun.c
@@ -111,14 +111,14 @@ boolean sched_addreadytorun(FAR _TCB *btcb)
* task to the g_pendingtasks task list for now.
*/
- sched_addprioritized(btcb, (dq_queue_t*)&g_pendingtasks);
+ sched_addprioritized(btcb, (FAR dq_queue_t*)&g_pendingtasks);
btcb->task_state = TSTATE_TASK_PENDING;
ret = FALSE;
}
/* Otherwise, add the new task to the g_readytorun task list */
- else if (sched_addprioritized(btcb, (dq_queue_t*)&g_readytorun))
+ else if (sched_addprioritized(btcb, (FAR dq_queue_t*)&g_readytorun))
{
/* Information the instrumentation logic that we are switching tasks */
diff --git a/nuttx/sched/sched_setparam.c b/nuttx/sched/sched_setparam.c
index cb363950c..30978b02e 100644
--- a/nuttx/sched/sched_setparam.c
+++ b/nuttx/sched/sched_setparam.c
@@ -240,7 +240,7 @@ int sched_setparam(pid_t pid, const struct sched_param *param)
{
/* Remove the TCB from the prioritized task list */
- dq_rem((FAR dq_entry_t*)tcb, (dq_queue_t*)g_tasklisttable[task_state].list);
+ dq_rem((FAR dq_entry_t*)tcb, (FAR dq_queue_t*)g_tasklisttable[task_state].list);
/* Change the task priority */
@@ -250,7 +250,7 @@ int sched_setparam(pid_t pid, const struct sched_param *param)
* position
*/
- sched_addprioritized(tcb, (dq_queue_t*)g_tasklisttable[task_state].list);
+ sched_addprioritized(tcb, (FAR dq_queue_t*)g_tasklisttable[task_state].list);
}
/* CASE 3b. The task resides in a non-prioritized list. */