aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv64/init/start.S
blob: f5ed2fec6129bd8137f915649d3a0a3f5f594148 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
.section .init.start
.global _start
/* Entry point to the kernel loader. */
_start:
li sp, PM_STACK_TOP
call init

.section .text
.global jump_to_kernel
jump_to_kernel:
mv a2, a0 // store kernel addr
mv a0, a1 // move fdt pointer to first argument
jr a2 // jump to kernel