mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-24 10:34:54 +08:00
config: Improve _Configure_From_workspace()
Commit4c09f4b3fechanged the cast from size_t to ssize_t to try to fix an workspace issue on 16-bit architectures. This change was reverted by commit7ff6115b8bfor the workspace but not _Configure_From_workspace(). Change the cast to uintptr_t to be in line with the Heap Handler.
This commit is contained in:
@@ -1239,7 +1239,7 @@ const Thread_Idle_body _Thread_Idle_body = CONFIGURE_IDLE_TASK_BODY;
|
||||
* may be applied.
|
||||
*/
|
||||
#define _Configure_From_workspace(_size) \
|
||||
(ssize_t) (_Configure_Zero_or_One(_size) * \
|
||||
(uintptr_t) (_Configure_Zero_or_One(_size) * \
|
||||
_Configure_Align_up(_size + HEAP_BLOCK_HEADER_SIZE, \
|
||||
_CONFIGURE_HEAP_MIN_BLOCK_SIZE))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user