commit | e3fe63a2214fac9479432d339aeaea994685302f | [log] [tgz] |
---|---|---|
author | Jim Shu <cwshu@andestech.com> | Mon Jun 14 23:47:04 2021 +0800 |
committer | Christopher Friedt <chrisfriedt@gmail.com> | Wed Aug 18 05:18:55 2021 -0400 |
tree | a9c5375b26e81e3a1c84944c34307faa0e691b3d | |
parent | e1c7333dc75b0adccd130b10b49bf3cd58dbadb1 [diff] |
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: Jim Shu <cwshu@andestech.com>