Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the issue of byte pool alloc fail when compile with -O3 optimization #367

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion common/inc/tx_byte_pool.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ VOID _tx_byte_pool_initialize(VOID);

/* Define internal byte memory pool management function prototypes. */

UCHAR *_tx_byte_pool_search(TX_BYTE_POOL *pool_ptr, ULONG memory_size);
UCHAR *_tx_byte_pool_search(volatile TX_BYTE_POOL *pool_ptr, ULONG memory_size);
VOID _tx_byte_pool_cleanup(TX_THREAD *thread_ptr, ULONG suspension_sequence);


Expand Down
2 changes: 1 addition & 1 deletion common/src/tx_byte_pool_search.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
/* resulting in version 6.1.7 */
/* */
/**************************************************************************/
UCHAR *_tx_byte_pool_search(TX_BYTE_POOL *pool_ptr, ULONG memory_size)
UCHAR *_tx_byte_pool_search(volatile TX_BYTE_POOL *pool_ptr, ULONG memory_size)
{

TX_INTERRUPT_SAVE_AREA
Expand Down
2 changes: 1 addition & 1 deletion common_smp/inc/tx_byte_pool.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ VOID _tx_byte_pool_initialize(VOID);

/* Define internal byte memory pool management function prototypes. */

UCHAR *_tx_byte_pool_search(TX_BYTE_POOL *pool_ptr, ULONG memory_size);
UCHAR *_tx_byte_pool_search(volatile TX_BYTE_POOL *pool_ptr, ULONG memory_size);
VOID _tx_byte_pool_cleanup(TX_THREAD *thread_ptr, ULONG suspension_sequence);


Expand Down
2 changes: 1 addition & 1 deletion common_smp/src/tx_byte_pool_search.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
/* resulting in version 6.3.0 */
/* */
/**************************************************************************/
UCHAR *_tx_byte_pool_search(TX_BYTE_POOL *pool_ptr, ULONG memory_size)
UCHAR *_tx_byte_pool_search(volatile TX_BYTE_POOL *pool_ptr, ULONG memory_size)
{

TX_INTERRUPT_SAVE_AREA
Expand Down