From 272e1889ce14aaea9e3431a93c406d347f5b3c54 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Thu, 23 Dec 2021 17:30:40 +0200 Subject: Added stat/mod_vmem + In general improved riscv vmem.c --- common/vmem.c | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'common/vmem.c') diff --git a/common/vmem.c b/common/vmem.c index 865ffdc..eee85a0 100644 --- a/common/vmem.c +++ b/common/vmem.c @@ -165,23 +165,6 @@ static struct sp_mem *sp_mem_create_region(vm_t start, vm_t end, return m; } -static struct sp_mem *sp_free_find_first(struct sp_reg_root *r, size_t size, size_t *align) -{ - *align = 0; - struct sp_node *n = sp_root(r->free_regions); - while(n){ - struct sp_mem *t = mem_container(n); - size_t nsize = t->end - t->start; - - if(size <= nsize) - return t; - - n = sp_right(n); - } - - return 0; -} - /* TODO: should probably check if this actually works :D seems to do, but that's * just from really quick checking */ static size_t po_align(size_t s) -- cgit v1.3