Revert "arch: riscv: added support for custom initialization of gp register"
This reverts commit 7b09d031fa
. Because
context save of GP register is removed, we don't need to initialize GP
at thread init. GP will be a constant value so that it could only be
initialized at program start.
Signed-off-by: Jim Shu <cwshu@andestech.com>
This commit is contained in:
parent
e3fe63a221
commit
97fa203330
4 changed files with 0 additions and 18 deletions
|
@ -47,10 +47,6 @@ void arch_new_thread(struct k_thread *thread, k_thread_stack_t *stack,
|
|||
stack_init->a2 = (ulong_t)p2;
|
||||
stack_init->a3 = (ulong_t)p3;
|
||||
|
||||
#ifdef CONFIG_RISCV_SOC_INIT_GP_VALUE
|
||||
stack_init->gp = __soc_get_gp_initial_value();
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_THREAD_LOCAL_STORAGE
|
||||
stack_init->tp = (ulong_t)thread->tls;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue