summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRichard Qin <richard.qin.x@gmail.com>2025-12-13 23:21:03 +0800
committerRichard Qin <richard.qin.x@gmail.com>2025-12-13 23:21:03 +0800
commit28fd88e0dd66728b22cd792deb5a1e8636f36ed3 (patch)
tree059cc8350adb68ca994de2c6ccf402895b575d88 /include
parent27fc7bda593c8bd2c24a334a368772b5f15d4e9e (diff)
downloadlume-28fd88e0dd66728b22cd792deb5a1e8636f36ed3.tar.gz
lume-28fd88e0dd66728b22cd792deb5a1e8636f36ed3.tar.xz
feat: add preemptive scheduling, SBI timer support and FDT parser.
Diffstat (limited to 'include')
-rw-r--r--include/common/types.h4
-rw-r--r--include/kernel/config.h7
2 files changed, 10 insertions, 1 deletions
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