diff options
| author | Jerzy Kasenberg <[email protected]> | 2020-10-13 16:25:51 +0200 |
|---|---|---|
| committer | Jerzy Kasenberg <[email protected]> | 2020-10-13 16:34:44 +0200 |
| commit | db70a35044bdec7092e89f269429cf87bbce6afe (patch) | |
| tree | ffc4e087731fc1b3e91d7aab5eda576c744f48f2 | |
| parent | 6ce539594739e9c29239b965f8e2ba2f93b78ec7 (diff) | |
osal_none: Fix queue definition
OSAL_QUEUE_DEF was not updated while FIFO was changed
to use unmasked pointers.
Two fields that are crucial to new functionality were left
uninitialized resulting in FIFO slowing down in time.
| -rw-r--r-- | src/osal/osal_none.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/osal/osal_none.h b/src/osal/osal_none.h index 4a5843f8e..1d170d2fa 100644 --- a/src/osal/osal_none.h +++ b/src/osal/osal_none.h @@ -139,6 +139,8 @@ typedef osal_queue_def_t* osal_queue_t; .depth = _depth, \ .item_size = sizeof(_type), \ .overwritable = false, \ + .max_pointer_idx = (2*(_depth))-1, \ + .non_used_index_space = 0xFFFF-((2*(_depth))-1),\ }\ } |
