This is an automated email from the ASF dual-hosted git repository.
pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 379639a arch/risc-v/mpfs: Remove duplicated riscv_restorefpu
379639a is described below
commit 379639a371697ba0bedbb371e6e437864e0ff71d
Author: Huang Qi <[email protected]>
AuthorDate: Wed Mar 30 15:17:50 2022 +0800
arch/risc-v/mpfs: Remove duplicated riscv_restorefpu
Signed-off-by: Huang Qi <[email protected]>
---
arch/risc-v/src/mpfs/mpfs_irq_dispatch.c | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/arch/risc-v/src/mpfs/mpfs_irq_dispatch.c
b/arch/risc-v/src/mpfs/mpfs_irq_dispatch.c
index 1e420c0..2ce2450 100755
--- a/arch/risc-v/src/mpfs/mpfs_irq_dispatch.c
+++ b/arch/risc-v/src/mpfs/mpfs_irq_dispatch.c
@@ -123,7 +123,6 @@ void *riscv_dispatch_irq(uintptr_t vector, uintptr_t *regs)
putreg32(irq - MPFS_IRQ_EXT_START, claim_address);
}
-#if defined(CONFIG_ARCH_FPU) || defined(CONFIG_ARCH_ADDRENV)
/* Check for a context switch. If a context switch occurred, then
* CURRENT_REGS will have a different value than it did on entry. If an
* interrupt level context switch has occurred, then restore the floating
@@ -133,12 +132,6 @@ void *riscv_dispatch_irq(uintptr_t vector, uintptr_t *regs)
if (regs != CURRENT_REGS)
{
-#ifdef CONFIG_ARCH_FPU
- /* Restore floating point registers */
-
- riscv_restorefpu((uintptr_t *)CURRENT_REGS);
-#endif
-
#ifdef CONFIG_ARCH_ADDRENV
/* Make sure that the address environment for the previously
* running task is closed down gracefully (data caches dump,
@@ -151,8 +144,6 @@ void *riscv_dispatch_irq(uintptr_t vector, uintptr_t *regs)
}
#endif
-#endif
-
/* If a context switch occurred while processing the interrupt then
* CURRENT_REGS may have change value. If we return any value different
* from the input regs, then the lower level will know that a context