-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Adjust LoongArch exception handler and enable some base libraries on LoongArch VM #6550
Conversation
⚠ WARNING: Cannot add some reviewers: A user specified as a reviewer for this PR is not a collaborator of the repository. Please add them as a collaborator to the repository so they can be requested in the future. Non-collaborators requested: Attn Admins: Admin Instructions:
|
f22c442
to
4db4ea3
Compare
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.
lgtm
4db4ea3
to
8dbad64
Compare
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.
It's great.
@ardbiesheuvel @niruiyu Hi Ard and Ray, please help to review these changes, THX! :) |
e991535
to
935364c
Compare
There is a problem with LoongArch64 exception handler, it returns a unhandled value when we get an exception type, the correct value should be right shifted 16 bits, so fix it. Cc: Ray Ni <[email protected]> Cc: Jiaxin Wu <[email protected]> Cc: Zhiguang Liu <[email protected]> Cc: Dun Tan <[email protected]> Cc: Rahul Kumar <[email protected]> Cc: Gerd Hoffmann <[email protected]> Cc: Jiaxin Wu <[email protected]> Signed-off-by: Chao Li <[email protected]>
If the exception type is INT, we need to know which interrupt could not be handled, so we added a method to dump them. Cc: Ray Ni <[email protected]> Cc: Jiaxin Wu <[email protected]> Cc: Zhiguang Liu <[email protected]> Cc: Dun Tan <[email protected]> Cc: Rahul Kumar <[email protected]> Cc: Gerd Hoffmann <[email protected]> Cc: Jiaxin Wu <[email protected]> Signed-off-by: Chao Li <[email protected]>
BaseCryptLib, RngLib, IntrinsicLib and OpensslLib are enabled by default on LoongArch VM, since some APPs or OS require them. Cc: Ard Biesheuvel <[email protected]> Cc: Jiewen Yao <[email protected]> Cc: Gerd Hoffmann <[email protected]> Signed-off-by: Chao Li <[email protected]>
935364c
to
cd44da2
Compare
Hi @ardbiesheuvel and @niruiyu , ping to review :) |
Description
Patch1: There is a problem with LoongArch64 exception handler, it returns a unhandled value when we get an exception type, the correct value should be right shifted 16 bits, so fix it. Increased the max number of exception handlers to 23.
Patch2: Added interrupt type dump function on LoongArch.
Patch3: BaseCryptLib, RngLib, IntrinsicLib and OpensslLib are enabled by default on LoongArch VM, since some APPs or OS require them.
How This Was Tested
Build OvmfPkg/LoongArchVirt/LoongArchVirtQemu.dsc and run it.
Integration Instructions
N/A.