summaryrefslogtreecommitdiff
path: root/sys/kern/entry.S
diff options
context:
space:
mode:
authorstefan <stefan@s00.xyz>2023-04-07 19:02:18 -0400
committerstefan <stefan@s00.xyz>2023-04-07 19:02:18 -0400
commita1a97aa7b2b0c3d1f3b6766446d605f83de1c561 (patch)
tree445f9419aee4e0ffdb7271d84474452c7e69d225 /sys/kern/entry.S
parentcd653dcee96a2673bf4ab5aadba0ecfaf5fe7a0f (diff)
downloadsv-a1a97aa7b2b0c3d1f3b6766446d605f83de1c561.tar.gz
stuff and things
Diffstat (limited to 'sys/kern/entry.S')
-rw-r--r--sys/kern/entry.S8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/kern/entry.S b/sys/kern/entry.S
index 5ad0490..fccd80f 100644
--- a/sys/kern/entry.S
+++ b/sys/kern/entry.S
@@ -11,9 +11,10 @@ _start:
la gp, __global_pointer$
.option pop
- la sp, __stack_start
+ addi t0, a0, 1
li t1, PAGE_SIZE
- mul t1, t1, a0
+ la sp, __stack_start
+ mul t1, t1, t0
add sp, sp, t1
li a2, 1
@@ -37,3 +38,6 @@ _spin:
.section ".data"
_boot_hart: .word 0
+.section ".rodata"
+.globl HEAP_START
+HEAP_START: .dword __heap_start