Re: [PATCH v2] RISC-V: Initialize the jvt CSR
Corinna Vinschen <[email protected]>
| Newsgroups | gmane.comp.lib.newlib |
|---|---|
| Message-ID | <[email protected]> |
On Jan 5 15:06, Hau Hsu wrote: > Set symbol '__jvt_base$' as weak. So if the symbol is not set in the > linker script, the address would be 0. We initialize jvt CSR only if > the address is not 0. > > Also use csr number directly instead of using symbolic name to prevent the > backward incompatible issue. > > psabi reference: > https://github.com/riscv-non-isa/riscv-elf-psabi-doc/blob/2d770815dc9a8b11e61ea1abd487cb25ee56ad5e/riscv-elf.adoc#table-jump-relaxation > --- > libgloss/riscv/crt0.S | 11 +++++++++++ > 1 file changed, 11 insertions(+) Pushed. Thanks, Corinna