From 28fd88e0dd66728b22cd792deb5a1e8636f36ed3 Mon Sep 17 00:00:00 2001 From: Richard Qin Date: Sat, 13 Dec 2025 23:21:03 +0800 Subject: feat: add preemptive scheduling, SBI timer support and FDT parser. --- include/common/types.h | 4 +++- include/kernel/config.h | 7 +++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 include/kernel/config.h (limited to 'include') diff --git a/include/common/types.h b/include/common/types.h index 4a22791..f9f01ca 100644 --- a/include/common/types.h +++ b/include/common/types.h @@ -13,4 +13,6 @@ typedef signed long long int64_t; typedef uint64_t size_t; typedef uint64_t uintptr_t; -typedef uint64_t uint64; \ No newline at end of file +typedef uint64_t uint64; +typedef uint32_t uint32; +typedef uint8_t uint8; \ No newline at end of file diff --git a/include/kernel/config.h b/include/kernel/config.h new file mode 100644 index 0000000..56a1aa6 --- /dev/null +++ b/include/kernel/config.h @@ -0,0 +1,7 @@ +#pragma once +#include "common/types.h" + +extern uint64 g_uart_base; +extern uint64 g_clint_base; +extern uint64 g_plic_base; +extern uint64 g_dtb_addr; \ No newline at end of file -- cgit v1.2.3