summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cpukit/score/include/rtems/score/thread.h6
-rw-r--r--cpukit/score/inline/rtems/score/stack.inl6
-rw-r--r--cpukit/score/src/threadinitialize.c4
-rw-r--r--cpukit/score/src/threadstackallocate.c6
4 files changed, 11 insertions, 11 deletions
diff --git a/cpukit/score/include/rtems/score/thread.h b/cpukit/score/include/rtems/score/thread.h
index 6b87844f0f..c23f9cf05c 100644
--- a/cpukit/score/include/rtems/score/thread.h
+++ b/cpukit/score/include/rtems/score/thread.h
@@ -476,9 +476,9 @@ void _Thread_Dispatch( void );
* Set the Start.stack field to the address of the stack
*/
-uint32_t _Thread_Stack_Allocate(
+size_t _Thread_Stack_Allocate(
Thread_Control *the_thread,
- uint32_t stack_size
+ size_t stack_size
);
/**
@@ -503,7 +503,7 @@ boolean _Thread_Initialize(
Objects_Information *information,
Thread_Control *the_thread,
void *stack_area,
- uint32_t stack_size,
+ size_t stack_size,
boolean is_fp,
Priority_Control priority,
boolean is_preemptible,
diff --git a/cpukit/score/inline/rtems/score/stack.inl b/cpukit/score/inline/rtems/score/stack.inl
index 863d703aa3..cfa634df95 100644
--- a/cpukit/score/inline/rtems/score/stack.inl
+++ b/cpukit/score/inline/rtems/score/stack.inl
@@ -33,7 +33,7 @@
RTEMS_INLINE_ROUTINE void _Stack_Initialize (
Stack_Control *the_stack,
void *starting_address,
- uint32_t size
+ size_t size
)
{
the_stack->area = starting_address;
@@ -46,7 +46,7 @@ RTEMS_INLINE_ROUTINE void _Stack_Initialize (
*/
RTEMS_INLINE_ROUTINE boolean _Stack_Is_enough (
- uint32_t size
+ size_t size
)
{
return ( size >= STACK_MINIMUM_SIZE );
@@ -63,7 +63,7 @@ RTEMS_INLINE_ROUTINE boolean _Stack_Is_enough (
*/
RTEMS_INLINE_ROUTINE uint32_t _Stack_Adjust_size (
- uint32_t size
+ size_t size
)
{
return size + CPU_STACK_ALIGNMENT;
diff --git a/cpukit/score/src/threadinitialize.c b/cpukit/score/src/threadinitialize.c
index 40e786f954..e61cbac19a 100644
--- a/cpukit/score/src/threadinitialize.c
+++ b/cpukit/score/src/threadinitialize.c
@@ -45,7 +45,7 @@ boolean _Thread_Initialize(
Objects_Information *information,
Thread_Control *the_thread,
void *stack_area,
- uint32_t stack_size,
+ size_t stack_size,
boolean is_fp,
Priority_Control priority,
boolean is_preemptible,
@@ -55,7 +55,7 @@ boolean _Thread_Initialize(
Objects_Name name
)
{
- uint32_t actual_stack_size = 0;
+ size_t actual_stack_size = 0;
void *stack = NULL;
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
void *fp_area;
diff --git a/cpukit/score/src/threadstackallocate.c b/cpukit/score/src/threadstackallocate.c
index 6464d2caec..9cc4da54f8 100644
--- a/cpukit/score/src/threadstackallocate.c
+++ b/cpukit/score/src/threadstackallocate.c
@@ -40,13 +40,13 @@
* Set the Start.stack field to the address of the stack
*/
-uint32_t _Thread_Stack_Allocate(
+size_t _Thread_Stack_Allocate(
Thread_Control *the_thread,
- uint32_t stack_size
+ size_t stack_size
)
{
void *stack_addr = 0;
- uint32_t the_stack_size = stack_size;
+ size_t the_stack_size = stack_size;
if ( !_Stack_Is_enough( the_stack_size ) )
the_stack_size = STACK_MINIMUM_SIZE;