From 83e17e29456ec9b6d45f4d9f2634eb280c6f414f Mon Sep 17 00:00:00 2001 From: stefan Date: Wed, 19 Apr 2023 20:50:10 -0400 Subject: ticket locks --- sys/dev/fdt/fdt.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'sys/dev/fdt') diff --git a/sys/dev/fdt/fdt.c b/sys/dev/fdt/fdt.c index 4b132e2..0bd0a52 100644 --- a/sys/dev/fdt/fdt.c +++ b/sys/dev/fdt/fdt.c @@ -20,9 +20,10 @@ fdt_walk(struct fdt_header *header) printf("header->size_dt_strings: %d\n", fdt_uint32(header->size_dt_strings)); printf("header->size_dt_struct: %d\n", fdt_uint32(header->size_dt_struct)); - uint8_t *dts = header + fdt_uint32(header->off_dt_struct) + sizeof(uint32_t); - uint8_t *dtstr = header + fdt_uint32(header->off_dt_strings); - printf("parsing dt struct @%p...\n", dts); - printf(dts); + printf("walking the memory reservation block...\n"); + struct fdt_reserve_entry *p = header + fdt_uint32(header->off_mem_rsvmap); +// do { +// printf("reserved entry at %p with size %i\n", p->address, p->size); +// p++; +// } while (!(p->size == 0 && p->address == 0)); } - -- cgit v1.2.3