mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-08-21 20:03:37 +08:00
stackchk: Fixed 32bit pointers
Using 32bit types like uint32_t for pointers creates issues on 64 bit architectures like AArch64. Replaced occurrences of these with uintptr_t, which will work for both 32 and 64 bit architectures.
This commit is contained in:
committed by
Joel Sherrill
parent
ca02143321
commit
cd5fd85730
@@ -447,12 +447,13 @@ static bool Stack_check_Dump_threads_usage(
|
||||
{
|
||||
char name[ 22 ];
|
||||
const rtems_printer *printer;
|
||||
uintptr_t sp = _CPU_Context_Get_SP( &the_thread->Registers );
|
||||
|
||||
printer = arg;
|
||||
_Thread_Get_name( the_thread, name, sizeof( name ) );
|
||||
Stack_check_Dump_stack_usage(
|
||||
&the_thread->Start.Initial_stack,
|
||||
(void *) _CPU_Context_Get_SP( &the_thread->Registers ),
|
||||
(void *) sp,
|
||||
name,
|
||||
the_thread->Object.id,
|
||||
printer
|
||||
|
||||
Reference in New Issue
Block a user