aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv/kernel/head.S
diff options
context:
space:
mode:
authorGravatar Christoph Hellwig <hch@lst.de> 2019-04-15 11:14:38 +0200
committerGravatar Palmer Dabbelt <palmer@sifive.com> 2019-04-25 14:51:11 -0700
commitba9c0141941ce618b04361a772c92a4da6dfcb35 (patch)
tree3e6ce6a474ce9e4c53a2fc9501b2ed224890331b /arch/riscv/kernel/head.S
parentriscv: simplify the stack pointer setup in head.S (diff)
downloadlinux-ba9c0141941ce618b04361a772c92a4da6dfcb35.tar.gz
linux-ba9c0141941ce618b04361a772c92a4da6dfcb35.tar.bz2
linux-ba9c0141941ce618b04361a772c92a4da6dfcb35.zip
riscv: cleanup the parse_dtb calling conventions
No need to pass the hartid, and the dtb address passed is a physical address, so don't pretend it is a kernel pointer. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Diffstat (limited to 'arch/riscv/kernel/head.S')
-rw-r--r--arch/riscv/kernel/head.S3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/riscv/kernel/head.S b/arch/riscv/kernel/head.S
index 62d2c9c85433..478821d31bb3 100644
--- a/arch/riscv/kernel/head.S
+++ b/arch/riscv/kernel/head.S
@@ -72,8 +72,7 @@ clear_bss_done:
la sp, init_thread_union + THREAD_SIZE
/* Start the kernel */
- mv a0, s0
- mv a1, s1
+ mv a0, s1
call parse_dtb
tail start_kernel