From: Corinna Vinschen <vinschen@redhat.com>
To: Hau Hsu <hau.hsu@sifive.com>
Cc: newlib@sourceware.org, kito.cheng@gmail.com
Subject: Re: [PATCH v2] RISC-V: Initialize the jvt CSR
Date: Mon, 8 Jan 2024 13:12:47 +0100 [thread overview]
Message-ID: <ZZvmv1Uw2q7X2hnL@calimero.vinschen.de> (raw)
In-Reply-To: <20240105070639.404903-1-hau.hsu@sifive.com>
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
prev parent reply other threads:[~2024-01-08 12:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-05 7:06 Hau Hsu
2024-01-05 7:09 ` Kito Cheng
2024-01-08 12:12 ` Corinna Vinschen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZZvmv1Uw2q7X2hnL@calimero.vinschen.de \
--to=vinschen@redhat.com \
--cc=hau.hsu@sifive.com \
--cc=kito.cheng@gmail.com \
--cc=newlib@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).