From 1af8404c54f9c8d3caa2ac3523c2a5f014aecb1c Mon Sep 17 00:00:00 2001 From: Yuxin Zhou Date: Thu, 14 Oct 2021 00:51:26 +0000 Subject: Release 6.1.9 --- common/src/tx_queue_create.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'common/src/tx_queue_create.c') diff --git a/common/src/tx_queue_create.c b/common/src/tx_queue_create.c index 522075e5..01aec360 100644 --- a/common/src/tx_queue_create.c +++ b/common/src/tx_queue_create.c @@ -74,7 +74,7 @@ /* resulting in version 6.1 */ /* */ /**************************************************************************/ -UINT _tx_queue_create(TX_QUEUE *queue_ptr, CHAR *name_ptr, UINT message_size, +UINT _tx_queue_create(TX_QUEUE *queue_ptr, CHAR *name_ptr, UINT message_size, VOID *queue_start, ULONG queue_size) { @@ -91,7 +91,7 @@ TX_QUEUE *previous_queue; /* Setup the basic queue fields. */ queue_ptr -> tx_queue_name = name_ptr; - + /* Save the message size in the control block. */ queue_ptr -> tx_queue_message_size = message_size; @@ -100,7 +100,7 @@ TX_QUEUE *previous_queue; capacity = (UINT) (queue_size / ((ULONG) (((ULONG) message_size) * (sizeof(ULONG))))); used_words = capacity * message_size; - /* Save the starting address and calculate the ending address of + /* Save the starting address and calculate the ending address of the queue. Note that the ending address is really one past the end! */ queue_ptr -> tx_queue_start = TX_VOID_TO_ULONG_POINTER_CONVERT(queue_start); -- cgit v1.3.1