From 4f4d9fdc89c27aa3346467a24b621954f4564d3b Mon Sep 17 00:00:00 2001 From: Kimplul Date: Wed, 29 Dec 2021 23:23:36 +0200 Subject: Refactoring + Mainly just moving stuff out or arch/riscv/ that should be handled in common/ + Prepared separate process stack/call stack for server callbacks, rest to be implemeted soon ish --- common/fdt.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'common/fdt.c') diff --git a/common/fdt.c b/common/fdt.c index c554b25..f76ad64 100644 --- a/common/fdt.c +++ b/common/fdt.c @@ -1,19 +1,19 @@ #include -struct cell_info_t get_cellinfo(void *fdt, int offset) +struct cell_info get_cellinfo(void *fdt, int offset) { - return (struct cell_info_t){ + return (struct cell_info){ fdt_size_cells(fdt, offset), fdt_address_cells(fdt, offset) }; } /* how "reg" is interpreted depends on the parent node */ -struct cell_info_t get_reginfo(void *fdt, const char *path) +struct cell_info get_reginfo(void *fdt, const char *path) { const char *i = strrchr(path, '/'); if(!i) - return (struct cell_info_t){0, 0}; + return (struct cell_info){0, 0}; size_t baselen = i - path; if(i == 0) -- cgit v1.3