this one looks fine to me by inspection.
On Fri, Mar 19, 2021 at 9:35 AM Stephen Clark <stephen.cl...@oarcorp.com> wrote: > > 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. > --- > cpukit/libmisc/rtems-fdt/rtems-fdt-shell.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/cpukit/libmisc/rtems-fdt/rtems-fdt-shell.c > b/cpukit/libmisc/rtems-fdt/rtems-fdt-shell.c > index b0894c1d38..61f20765e0 100644 > --- a/cpukit/libmisc/rtems-fdt/rtems-fdt-shell.c > +++ b/cpukit/libmisc/rtems-fdt/rtems-fdt-shell.c > @@ -52,14 +52,14 @@ static long rtems_fdt_test_timeout = 5; > static rtems_fdt_handle cmd_fdt_handle; > > static void > -rtems_fdt_write (uint32_t address, uint32_t value) > +rtems_fdt_write (uintptr_t address, uint32_t value) > { > volatile uint32_t* ap = (uint32_t*) address; > *ap = value; > } > > static uint32_t > -rtems_fdt_read (uint32_t address) > +rtems_fdt_read (uintptr_t address) > { > volatile uint32_t* ap = (uint32_t*) address; > return *ap; > -- > 2.27.0 > > _______________________________________________ > devel mailing list > devel@rtems.org > http://lists.rtems.org/mailman/listinfo/devel _______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel