lib: add rbtree data structure

This also switches the kmalloc allocator over to the new rbtree
structure. As a balanced binary search tree, it is much more efficient
than the previous method
This commit is contained in:
Michael Shaw 2023-05-10 17:59:46 -04:00
commit 4e36cfd90b
6 changed files with 430 additions and 42 deletions

View file

@ -16,7 +16,7 @@ define DEFAULT_VAR =
endef
# User controllable CFLAGS.
CFLAGS ?= -g -O2 -pipe -Wall -Wextra
CFLAGS ?= -g -O0 -pipe -Wall -Wextra
# User controllable linker flags. We set none by default.
LDFLAGS ?=