From 605c7d9258c129b66b76f1b55a8a6f3cea68c13e Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sat, 18 Sep 2021 22:32:15 +0300 Subject: Added fdt debug capability + For future reference, apos now requires initrd to be found in fdt. --- include/libfdt.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include/libfdt.h') 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 -- cgit v1.3