Searched hist:"5 c718542e3b60ad48b91fa297b07c754bfaa3fed" (Results 1 – 4 of 4) sorted by relevance
| /optee_os/core/arch/riscv/kernel/ |
| H A D | abort.c | 5c718542e3b60ad48b91fa297b07c754bfaa3fed Sun Aug 18 11:28:08 UTC 2024 Alvin Chang <alvinga@andestech.com> core: riscv: Remove thread_exit_user_mode()
Currently, the user mode abort and some system calls return to kernel mode by thread_exit_user_mode(). Although this function creates a shorter path to return to kernel mode, it leads to some problems because the function does not update the core local flags. Especially when CFG_CORE_DEBUG_CHECK_STACKS=y, some checks will fail due to wrong type of stack recorded in the core local flags.
Fix it by removing thread_exit_user_mode(). So that the core local flags can be correctly updated in the common trap handler.
Signed-off-by: Alvin Chang <alvinga@andestech.com> Reviewed-by: Yu Chien Peter Lin <peterlin@andestech.com>
|
| H A D | thread_arch.c | 5c718542e3b60ad48b91fa297b07c754bfaa3fed Sun Aug 18 11:28:08 UTC 2024 Alvin Chang <alvinga@andestech.com> core: riscv: Remove thread_exit_user_mode()
Currently, the user mode abort and some system calls return to kernel mode by thread_exit_user_mode(). Although this function creates a shorter path to return to kernel mode, it leads to some problems because the function does not update the core local flags. Especially when CFG_CORE_DEBUG_CHECK_STACKS=y, some checks will fail due to wrong type of stack recorded in the core local flags.
Fix it by removing thread_exit_user_mode(). So that the core local flags can be correctly updated in the common trap handler.
Signed-off-by: Alvin Chang <alvinga@andestech.com> Reviewed-by: Yu Chien Peter Lin <peterlin@andestech.com>
|
| H A D | thread_rv.S | 5c718542e3b60ad48b91fa297b07c754bfaa3fed Sun Aug 18 11:28:08 UTC 2024 Alvin Chang <alvinga@andestech.com> core: riscv: Remove thread_exit_user_mode()
Currently, the user mode abort and some system calls return to kernel mode by thread_exit_user_mode(). Although this function creates a shorter path to return to kernel mode, it leads to some problems because the function does not update the core local flags. Especially when CFG_CORE_DEBUG_CHECK_STACKS=y, some checks will fail due to wrong type of stack recorded in the core local flags.
Fix it by removing thread_exit_user_mode(). So that the core local flags can be correctly updated in the common trap handler.
Signed-off-by: Alvin Chang <alvinga@andestech.com> Reviewed-by: Yu Chien Peter Lin <peterlin@andestech.com>
|
| /optee_os/core/arch/riscv/include/kernel/ |
| H A D | thread_private_arch.h | 5c718542e3b60ad48b91fa297b07c754bfaa3fed Sun Aug 18 11:28:08 UTC 2024 Alvin Chang <alvinga@andestech.com> core: riscv: Remove thread_exit_user_mode()
Currently, the user mode abort and some system calls return to kernel mode by thread_exit_user_mode(). Although this function creates a shorter path to return to kernel mode, it leads to some problems because the function does not update the core local flags. Especially when CFG_CORE_DEBUG_CHECK_STACKS=y, some checks will fail due to wrong type of stack recorded in the core local flags.
Fix it by removing thread_exit_user_mode(). So that the core local flags can be correctly updated in the common trap handler.
Signed-off-by: Alvin Chang <alvinga@andestech.com> Reviewed-by: Yu Chien Peter Lin <peterlin@andestech.com>
|