From 408dbeb9225e1969113b81ad3ef484f351b9b4e3 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Fri, 25 Nov 2022 12:18:07 +1100 Subject: libmisc/rtems-fdt: Support prop map items up to the size of uintptr_t Updates #4729 --- cpukit/include/rtems/rtems-fdt.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cpukit/include') diff --git a/cpukit/include/rtems/rtems-fdt.h b/cpukit/include/rtems/rtems-fdt.h index 18e04352aa..e3ebfe3ba4 100644 --- a/cpukit/include/rtems/rtems-fdt.h +++ b/cpukit/include/rtems/rtems-fdt.h @@ -694,6 +694,12 @@ const char *rtems_fdt_entry_name(rtems_fdt_handle* handle, int id); */ int rtems_fdt_entry_offset(rtems_fdt_handle* handle, int id); +/* + * Helper function to convert the void* property result of unknown + * length to an unsigned int pointer value. + */ +uintptr_t rtems_fdt_get_offset_len_uintptr(const void* prop, int offset, int len); + /* * Helper function to convert the void* property result to a 32bit unsigned int. */ -- cgit v1.2.3