kernel: implement initcalls and a testing system

This commit is contained in:
2023-02-26 10:05:39 +00:00
parent bc1bc9fec5
commit d41ea0cd52
16 changed files with 314 additions and 40 deletions

View File

@@ -3,11 +3,11 @@ run: $(BUILD_DIR)/$(KERNEL_EXEC)
@$(BUILD_DIR)/$(KERNEL_EXEC)
debug: $(BUILD_DIR)/$(KERNEL_EXEC)
debug: $(BUILD_DIR)/$(KERNEL_EXEC) $(BUILD_DIR)/$(KERNEL_EXEC).dbg
@if command -v gdb &> /dev/null; then \
gdb -tui $(BUILD_DIR)/$(KERNEL_EXEC) \
elif commad -v lldb &> /dev/null; then \
lldb -- $(BUILD_DIR)/$(KERNEL_EXEC) \
gdb -tui $(BUILD_DIR)/$(KERNEL_EXEC).dbg; \
elif command -v lldb &> /dev/null; then \
lldb -- $(BUILD_DIR)/$(KERNEL_EXEC).dbg; \
else \
printf "No debuggers available." \
endif
printf "No debuggers available.\n"; \
fi