diff options
author | Stephen Clark <stephen.clark@oarcorp.com> | 2021-03-18 11:54:03 -0500 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2021-05-05 09:45:56 -0500 |
commit | ca021433217a1b2ae357ba3ef9f6451082073b56 (patch) | |
tree | c5024b75937215658341163e5aa0b122caf942dc /cpukit | |
parent | score: Make _Once_Lock() and _Once_Unlock() static (diff) | |
download | rtems-ca021433217a1b2ae357ba3ef9f6451082073b56.tar.bz2 |
rtems-fdt: 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.
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/libmisc/rtems-fdt/rtems-fdt-shell.c | 4 |
1 files 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; |