summaryrefslogtreecommitdiff
path: root/src/start.S
diff options
context:
space:
mode:
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 .