From c2f017dd255ead408167190baee436cfb4ee3422 Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Thu, 9 Mar 2023 13:49:18 -0600 Subject: [PATCH] platform/efi/riscv64: Drop extra SetSatp before jumping into kernel * arch_enter_kernel does this anyway * Called here, it causes a hang Change-Id: I39d1a89d217fd0fbd55e7d91317b9d13b9758960 Reviewed-on: https://review.haiku-os.org/c/haiku/+/6181 Reviewed-by: Alex von Gluck IV Reviewed-by: David Karoly Tested-by: Automation Reviewed-by: Fredrik Holmqvist Reviewed-by: X512 --- src/system/boot/platform/efi/arch/riscv64/arch_start.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/system/boot/platform/efi/arch/riscv64/arch_start.cpp b/src/system/boot/platform/efi/arch/riscv64/arch_start.cpp index f6cf88896f..d001eda7fd 100644 --- a/src/system/boot/platform/efi/arch/riscv64/arch_start.cpp +++ b/src/system/boot/platform/efi/arch/riscv64/arch_start.cpp @@ -145,12 +145,6 @@ arch_start_kernel(addr_t kernelEntry) serial_enable(); - dprintf("[PRE] SetSatp()\n"); - SetSatp(satp); - dprintf("[POST] SetSatp()\n"); - FlushTlbAll(); - dprintf("[POST] FlushTlbAll()\n"); - // Copy final kernel args // This should be the last step before jumping to the kernel // as there are some fixups happening to kernel_args even in the last minute