diff options
author | stefan <stefan@s00.xyz> | 2023-04-04 06:01:50 +0000 |
---|---|---|
committer | stefan <stefan@s00.xyz> | 2023-04-04 06:01:50 +0000 |
commit | 25108684fe235d4296c3cbc480298df209682586 (patch) | |
tree | 59f051e13154764da2b98dfdc1ce66e363d801da /kernel/boot/entry.S | |
parent | 254ffbc869c2376e77ecc298dfd396f077e9d58a (diff) | |
download | sv-25108684fe235d4296c3cbc480298df209682586.tar.gz |
build system and some other stuff
Diffstat (limited to 'kernel/boot/entry.S')
-rw-r--r-- | kernel/boot/entry.S | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/kernel/boot/entry.S b/kernel/boot/entry.S deleted file mode 100644 index 4c977a3..0000000 --- a/kernel/boot/entry.S +++ /dev/null @@ -1,36 +0,0 @@ -.section .text.init - -.globl _start -_start: - csrw satp, zero - csrw sie, zero - csrw sip, zero - - .option push - .option norelax - la gp, __global_pointer$ - .option pop - - la sp, __stack_start - mv t0, a0 - li t1, PAGE_SIZE - mul t0, t0, t1 - add sp, sp, t0 - - li a2, 1 - lla a3, _boot_hart - amoswap.w, a3, a2, (a3) - bnez a3, mp_entry - - la a2, __bss_start - la a3, __bss_end -1: - sd zero, (a2) - addi a2, a2, __SIZEOF_POINTER__ - blt a2, a3, 1b - - call boot - -_boot_hart: - .dword 0 - |