[Cbe-oss-dev] [PATCH 1/10] MARS: task queue fix incorrect define usage
Yuji Mano
Yuji.Mano at am.sony.com
Thu Aug 28 05:10:45 EST 2008
This fixes a copy paste bug where some task event flag defines were being used
inside of the task queue implementation.
Signed-off-by: Yuji Mano <yuji.mano at am.sony.com>
---
src/host/lib/mars_task_queue.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/src/host/lib/mars_task_queue.c
+++ b/src/host/lib/mars_task_queue.c
@@ -165,7 +165,7 @@ static int push(struct mars_task_queue *
MARS_CHECK_RET(queue, MARS_ERROR_NULL);
MARS_CHECK_RET(((uintptr_t)queue & MARS_TASK_QUEUE_ALIGN_MASK) == 0,
MARS_ERROR_ALIGN);
- MARS_CHECK_RET(queue->direction == MARS_TASK_EVENT_FLAG_HOST_TO_MPU,
+ MARS_CHECK_RET(queue->direction == MARS_TASK_QUEUE_HOST_TO_MPU,
MARS_ERROR_STATE);
mars_mutex_lock((struct mars_mutex *)queue);
@@ -238,7 +238,7 @@ static int pop(struct mars_task_queue *q
MARS_CHECK_RET(queue, MARS_ERROR_NULL);
MARS_CHECK_RET(((uintptr_t)queue & MARS_TASK_QUEUE_ALIGN_MASK) == 0,
MARS_ERROR_ALIGN);
- MARS_CHECK_RET(queue->direction == MARS_TASK_EVENT_FLAG_MPU_TO_HOST,
+ MARS_CHECK_RET(queue->direction == MARS_TASK_QUEUE_MPU_TO_HOST,
MARS_ERROR_STATE);
mars_mutex_lock((struct mars_mutex *)queue);
More information about the cbe-oss-dev
mailing list