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

chrisj at rtems.org chrisj at rtems.org
Wed Dec 13 02:48:44 UTC 2023


From: Chris Johns <chrisj at rtems.org>

---
 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;
 
-- 
2.42.0



More information about the devel mailing list