aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2021-09-19 17:46:26 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2021-09-19 19:07:13 +0300
commit4dffc92abf8f6a6e9b503c9809caaa99795d7a00 (patch)
tree65fdb7c09f0b9a0ce2551fe8b51e637309322ed5 /include
parent5979b0e7ba9064ae4033dbbe650bea86c2afb440 (diff)
downloadkmi-4dffc92abf8f6a6e9b503c9809caaa99795d7a00.tar.gz
kmi-4dffc92abf8f6a6e9b503c9809caaa99795d7a00.zip
Added basic awareness of kernel size/bounds
Diffstat (limited to 'include')
-rw-r--r--include/libfdt.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/libfdt.h b/include/libfdt.h
index d734715..7425aef 100644
--- a/include/libfdt.h
+++ b/include/libfdt.h
@@ -9,4 +9,7 @@ void __dbg_fdt(void *fdt, int node_offset, int depth);
#define dbg_fdt(...)
#endif
+#define fdt_load_int_ptr(t, c, p)\
+ ((c) == 2 ? (t)fdt64_to_cpu(*(fdt64_t *)(p)) : (t)fdt32_to_cpu(*(fdt32_t *)(p)))
+
#endif