mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-08-31 18:16:41 +08:00
Change _Workspace_Handler_initialization and _Workspace_Allocate_or_fatal_error to using size_t.
This commit is contained in:
@@ -52,7 +52,7 @@ SCORE_EXTERN Heap_Control _Workspace_Area; /* executive heap header */
|
||||
*/
|
||||
void _Workspace_Handler_initialization(
|
||||
void *starting_address,
|
||||
uint32_t size
|
||||
size_t size
|
||||
);
|
||||
|
||||
/** @brief Workspace Allocate or Fail with Fatal Error
|
||||
@@ -65,7 +65,7 @@ void _Workspace_Handler_initialization(
|
||||
* @return If successful, the starting address of the allocated memory
|
||||
*/
|
||||
void *_Workspace_Allocate_or_fatal_error(
|
||||
uint32_t size
|
||||
size_t size
|
||||
);
|
||||
|
||||
#ifndef __RTEMS_APPLICATION__
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
*/
|
||||
|
||||
RTEMS_INLINE_ROUTINE void *_Workspace_Allocate(
|
||||
uint32_t size
|
||||
size_t size
|
||||
)
|
||||
{
|
||||
return _Heap_Allocate( &_Workspace_Area, size );
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
void _Workspace_Handler_initialization(
|
||||
void *starting_address,
|
||||
uint32_t size
|
||||
size_t size
|
||||
)
|
||||
{
|
||||
uint32_t *zero_out_array;
|
||||
@@ -73,7 +73,7 @@ void _Workspace_Handler_initialization(
|
||||
*/
|
||||
|
||||
void *_Workspace_Allocate_or_fatal_error(
|
||||
uint32_t size
|
||||
size_t size
|
||||
)
|
||||
{
|
||||
void *memory;
|
||||
|
||||
Reference in New Issue
Block a user