Revert "arch/riscv: Use arch_switch() for context swap"

This reverts commit be28de692c.

The purpose of this commit will be reintroduced later on top of
a cleaner codebase.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
This commit is contained in:
Nicolas Pitre 2022-03-09 17:46:30 -05:00 committed by Anas Nashif
commit 442ab22bdc
6 changed files with 204 additions and 248 deletions

View file

@ -127,7 +127,6 @@ void arch_new_thread(struct k_thread *thread, k_thread_stack_t *stack,
#endif
thread->callee_saved.sp = (ulong_t)stack_init;
thread->switch_handle = thread;
}
#if defined(CONFIG_FPU) && defined(CONFIG_FPU_SHARING)