zephyr/include/arch/riscv
Jim Shu 073cfa9cdf arch: riscv: introduce global pointer relative addressing support
Enable RISC-V GP relative addressing by linker relaxation to reduce
the code size. It optimizes addressing of globals in small data section
(.sdata).

The gp initialization at program start needs each SoC support. Also,
if RISC-V SoC has custom linker script, SoC should provide
__global_pointer$ symbol in it's linker script.

Signed-off-by: Jim Shu <cwshu@andestech.com>
2021-08-20 18:53:23 -04:00
..
common arch: riscv: introduce global pointer relative addressing support 2021-08-20 18:53:23 -04:00
riscv-privilege arch/riscv: rearrange for standard use of extern "C" 2019-08-18 16:20:10 +02:00
arch.h clock: rename z_timer_cycle_get_32 -> sys_clock_cycle_get_32 2021-03-19 11:22:17 -04:00
csr.h arch: riscv: add pmp support 2020-11-09 15:37:11 -05:00
error.h userspace: rename _is_user_context -> k_is_user_context 2021-04-01 05:34:17 -04:00
exp.h arch: riscv: remove unneeded context switch to gp register 2021-08-18 05:18:55 -04:00
syscall.h arch: riscv: add memory protection support 2020-11-09 15:37:11 -05:00
thread.h arch: riscv: add memory protection support 2020-11-09 15:37:11 -05:00