Skip to content
Commit e3fe63a2 authored by Jim Shu's avatar Jim Shu Committed by Christopher Friedt
Browse files

arch: riscv: remove unneeded context switch to gp register



RISC-V global pointer (GP) register is neither caller nor callee
register, and it's a constant value in the single ELF file. Thus, we
don't need to save/restore GP at ISR enter/exit. Remove it to optimize
context switch performance.

Signed-off-by: default avatarJim Shu <cwshu@andestech.com>
parent e1c7333d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment