|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH v1 3/8] xen/riscv: introduce reset_stack() function
Signed-off-by: Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>
---
xen/arch/riscv/riscv64/head.S | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/xen/arch/riscv/riscv64/head.S b/xen/arch/riscv/riscv64/head.S
index 8887f0cbd4..6fb7dd80fd 100644
--- a/xen/arch/riscv/riscv64/head.S
+++ b/xen/arch/riscv/riscv64/head.S
@@ -27,8 +27,14 @@ ENTRY(start)
add t3, t3, __SIZEOF_POINTER__
bltu t3, t4, .L_clear_bss
+ jal reset_stack
+
+ tail start_xen
+
+ENTRY(reset_stack)
la sp, cpu0_boot_stack
li t0, STACK_SIZE
add sp, sp, t0
- tail start_xen
+ ret
+
--
2.40.1
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |