Skip to content
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

Merged
merged 3 commits into from
Dec 23, 2024

Conversation

kilaterlee
Copy link
Contributor

@kilaterlee kilaterlee commented Dec 17, 2024

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.

@tianocore-assign-reviewers
Copy link

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:

  • Add the non-collaborators as collaborators to the appropriate team(s) listed in teams
  • If they are no longer needed as reviewers, remove them from Maintainers.txt

Copy link

@AydenMeng AydenMeng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@kilaterlee kilaterlee marked this pull request as draft December 18, 2024 02:30
Copy link
Member

@MarsDoge MarsDoge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's great.

@kilaterlee kilaterlee marked this pull request as ready for review December 18, 2024 06:47
@kilaterlee
Copy link
Contributor Author

@ardbiesheuvel @niruiyu Hi Ard and Ray, please help to review these changes, THX! :)

@kilaterlee kilaterlee force-pushed the Submit1217 branch 4 times, most recently from e991535 to 935364c Compare December 20, 2024 10:07
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]>
@kilaterlee
Copy link
Contributor Author

@ardbiesheuvel @niruiyu Hi Ard and Ray, please help to review these changes, THX! :)

Hi @ardbiesheuvel and @niruiyu , ping to review :)

@kilaterlee kilaterlee added the push Auto push patch series in PR if all checks pass label Dec 23, 2024
@mergify mergify bot merged commit b8f3199 into tianocore:master Dec 23, 2024
126 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
push Auto push patch series in PR if all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants