[rtems commit] rtems-fdt: Fix node property access on 64bit

Chris Johns chrisj at rtems.org
Wed Dec 13 20:22:28 UTC 2023


Module:    rtems
Branch:    master
Commit:    a9905de7a48f677347f44a58e4c048ea62373e99
Changeset: http://git.rtems.org/rtems/commit/?id=a9905de7a48f677347f44a58e4c048ea62373e99

Author:    Chris Johns <chrisj at rtems.org>
Date:      Wed Dec 13 13:45:05 2023 +1100

rtems-fdt: Fix node property access on 64bit

---

 cpukit/libmisc/rtems-fdt/rtems-fdt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpukit/libmisc/rtems-fdt/rtems-fdt.c b/cpukit/libmisc/rtems-fdt/rtems-fdt.c
index ec8f270eef..9f8d7bfb24 100644
--- a/cpukit/libmisc/rtems-fdt/rtems-fdt.c
+++ b/cpukit/libmisc/rtems-fdt/rtems-fdt.c
@@ -1165,7 +1165,7 @@ rtems_fdt_get_value (const char* path,
   }
 
   if (length == sizeof (uintptr_t))
-    *value = rtems_fdt_get_uint32 (prop);
+    *value = rtems_fdt_get_uintptr (prop);
   else
     *value = 0;
 



More information about the vc mailing list