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/cpu.c | 6 ------ sys/dev/fdt/fdt.c | 11 ++++++----- 2 files changed, 6 insertions(+), 11 deletions(-) delete mode 100644 sys/dev/cpu.c (limited to 'sys/dev') diff --git a/sys/dev/cpu.c b/sys/dev/cpu.c deleted file mode 100644 index f96b807..0000000 --- a/sys/dev/cpu.c +++ /dev/null @@ -1,6 +0,0 @@ -#include - -extern struct hart harts[NPROC]; - - - 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