summaryrefslogtreecommitdiff
path: root/src/start.S
diff options
context:
space:
mode:
authorNathan Lee <me@nwlee.tech>2026-06-13 21:24:33 -0500
committerNathan Lee <me@nwlee.tech>2026-06-13 21:24:33 -0500
commit2fb81f37d20fd442d1954a7356e3ab7f88314a9c (patch)
tree72a63c6c848d1ac748804000a2ed1debf1fc789b /src/start.S
parent4d843a5e03c91867614c94829c5255bc067a90c6 (diff)
create support for kernel modules (but don't implement them yet)
Diffstat (limited to 'src/start.S')
-rw-r--r--src/start.S20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/start.S b/src/start.S
deleted file mode 100644
index 118b1c1..0000000
--- a/src/start.S
+++ /dev/null
@@ -1,20 +0,0 @@
-.section .text._start
-.global _start
-.type _start, @function
-
-_start:
- # csrw mstatus, zero
- # csrw mie, zero
-
- la sp, __stack_top
-
- la t0, __bss_start
- la t1, __bss_end
- beq t0, t1, 2f
-1:
- sw zero, 0(t0)
- addi t0, t0, 4
- bltu t0, t1, 1b
-2:
- call kernel_main
- j .