-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RiscVPkg: Implement ResetSystem RuntimeService #6
base: master
Are you sure you want to change the base?
Conversation
The same reason, access to MSCRATCH in S-Mode is invalid. |
Cc: Abner Chang <[email protected]> Cc: Gilbert Chen <[email protected]>
ebcc36e
to
a38e417
Compare
Right... that was stupid. |
I think this is good and stable. It only uses the SBI ecall interface. |
[Defines] | ||
INF_VERSION = 0x00010005 | ||
BASE_NAME = ResetSystemLib | ||
FILE_GUID = 3eff6057-1116-4dcb-837e-c0ef1a120ab1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the newly generated GUID, right? Just make sure this is not duplicate with others.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, of course ;)
I have the feeling you have been burnt by this mistake in the past? 😆
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hah, not really. just people sometime forget to use a new one. :)
Ok. Please keep this in the pocket. Send out to edk2-mailing list once edk2 RISC-V port gets into master branch. |
sure. We may have to ask them to create a new extension for shutdown with parameters of reset types, this replaces original Shutdown() API. |
Atish has created a draft extension for system reset: avpatel/riscv-sbi-doc@71d1870 We might need to help get this through. He said that it might be easier to get accepted if we present a strong use-case. |
When executing the
reset
command in the UEFI shell, the debug message is printed but the VM gets stuck. Not sure whether that's my implementation fault or OpenSBI&QEMU.To try this PR, the following patch also needs to be applied to edk2-platforms: