Changeset f3f8aa5 in rtems


Ignore:
Timestamp:
09/25/23 20:32:23 (2 months ago)
Author:
Kinsey Moore <kinsey.moore@…>
Branches:
master
Children:
a1fc655
Parents:
99c637f
git-author:
Kinsey Moore <kinsey.moore@…> (09/25/23 20:32:23)
git-committer:
Joel Sherrill <joel@…> (09/26/23 14:02:48)
Message:

cpukit/aarch64: Resolve warnings with ILP32 ABI

Casts from uint64_t to void* must go through a uintptr_t cast to avoid
warnings when building with the ILP32 ABI since this is otherwise an
implicit truncation to 32bits for a pointer.

Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libdl/rtl-mdreloc-aarch64.c

    r99c637f rf3f8aa5  
    425425
    426426      if (rtems_rtl_trace (RTEMS_RTL_TRACE_RELOC))
    427         printf ("rtl: JUMP26/PC26/CALL: insn=%p where=%p target=%p raddr=%p parsing=%d\n",
    428                 insn, (void*) where, (void*) target, (void*) raddr, parsing);
     427        printf (
     428          "rtl: JUMP26/PC26/CALL: insn=%p where=%p target=%p raddr=%p parsing=%d\n",
     429          insn, (void*) where, (void*)(uintptr_t) target, (void*)(uintptr_t) raddr,
     430          parsing
     431        );
    429432
    430433      target = (intptr_t)target >> 2;
  • cpukit/score/cpu/aarch64/include/rtems/score/cpuimpl.h

    r99c637f rf3f8aa5  
    179179)
    180180{
    181   return (void *) context->thread_id;
     181  return (void *)(uintptr_t) context->thread_id;
    182182}
    183183
Note: See TracChangeset for help on using the changeset viewer.