diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-07-06 23:37:11 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-07-06 23:37:11 +0300 |
| commit | 3fedbb6e1f849c5e0a4033d68201d60c2fc48121 (patch) | |
| tree | bd219cef69a19938ecf453c3c3bb76fc13bd31a9 /include/libfdt.h | |
| parent | 3528f88fc36df6964c0efed784ae223cfe93544e (diff) | |
| download | kmi-3fedbb6e1f849c5e0a4033d68201d60c2fc48121.tar.gz kmi-3fedbb6e1f849c5e0a4033d68201d60c2fc48121.zip | |
core bringup + various warnings
+ dbg_fdt() is apparently broken, possibly due to UB or something, but
it causes some issues with optimizations enabled. Remove it
temporarily
Diffstat (limited to 'include/libfdt.h')
| -rw-r--r-- | include/libfdt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libfdt.h b/include/libfdt.h index c603840..c1d6a4e 100644 --- a/include/libfdt.h +++ b/include/libfdt.h @@ -99,7 +99,7 @@ void __dbg_fdt(const void *fdt, int node_offset, int depth); static inline fdt64_t fdt_load_reg_addr(struct cell_info ci, const void *p, size_t i) { - hard_assert(ci.addr_cells == 2 || ci.addr_cells == 1, 0); + catastrophic_assert(ci.addr_cells == 2 || ci.addr_cells == 1); size_t offset = i * (ci.addr_cells + ci.size_cells) * sizeof(fdt32_t); char *addr = ((char *)p) + 0; return fdt_load_int_ptr(ci.addr_cells, addr + offset); |
