From: Paul Walmsley <paul.walmsley@sifive.com>
To: Greentime Hu <greentime.hu@sifive.com>
Cc: green.hu@gmail.com, greentime@kernel.org, hch@lst.de,
palmer@dabbelt.com, linux-riscv@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] riscv: fix scratch register clearing in M-mode.
Date: Fri, 20 Dec 2019 03:07:08 -0800 (PST) [thread overview]
Message-ID: <alpine.DEB.2.21.9999.1912200306570.3767@viisi.sifive.com> (raw)
In-Reply-To: <20191219064459.20790-1-greentime.hu@sifive.com>
On Thu, 19 Dec 2019, Greentime Hu wrote:
> This patch fixes that the sscratch register clearing in M-mode. It cleared
> sscratch register in M-mode, but it should clear mscratch register. That will
> cause kernel trap if the CPU core doesn't support S-mode when trying to access
> sscratch.
>
> Fixes: 9e80635619b5 ("riscv: clear the instruction cache and all registers when booting")
> Signed-off-by: Greentime Hu <greentime.hu@sifive.com>
Thanks Greentime, queued for v5.5-rc.
- Paul
prev parent reply other threads:[~2019-12-20 11:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-19 6:44 Greentime Hu
2019-12-19 6:54 ` Anup Patel
2019-12-20 11:07 ` Paul Walmsley [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=alpine.DEB.2.21.9999.1912200306570.3767@viisi.sifive.com \
--to=paul.walmsley@sifive.com \
--cc=green.hu@gmail.com \
--cc=greentime.hu@sifive.com \
--cc=greentime@kernel.org \
--cc=hch@lst.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=palmer@dabbelt.com \
/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
all inboxes | Powered by JetHome®