aboutsummaryrefslogtreecommitdiff
path: root/include/libfdt.h
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2021-09-18 22:32:15 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2021-09-19 13:57:57 +0300
commit605c7d9258c129b66b76f1b55a8a6f3cea68c13e (patch)
tree22bd4fad07791d0bb514e711a3c5e185eed586a0 /include/libfdt.h
parentd95c714c8cfdc5818b0e0f0c99cf2e5be66de202 (diff)
downloadkmi-605c7d9258c129b66b76f1b55a8a6f3cea68c13e.tar.gz
kmi-605c7d9258c129b66b76f1b55a8a6f3cea68c13e.zip
Added fdt debug capability
+ For future reference, apos now requires initrd to be found in fdt.
Diffstat (limited to 'include/libfdt.h')
-rw-r--r--include/libfdt.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/libfdt.h b/include/libfdt.h
index 65b3ca6..d734715 100644
--- a/include/libfdt.h
+++ b/include/libfdt.h
@@ -1 +1,12 @@
+#ifndef APOS_LIBFDT_H
+#define APOS_LIBFDT_H
#include "../dtc/libfdt/libfdt.h"
+
+#if defined(DEBUG)
+void __dbg_fdt(void *fdt, int node_offset, int depth);
+#define dbg_fdt(fdt) __dbg_fdt(fdt, 0, 0)
+#else
+#define dbg_fdt(...)
+#endif
+
+#endif