-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
arm64: Allows thread to independent control the switch of sctlr #15437
base: master
Are you sure you want to change the base?
Conversation
The method is the same as the method of saving the current DAIF state of the thread It will pave the way for the future implementation of hwasan's memory management Allows each thread to independently control the mte switch function Signed-off-by: wangmingrong1 <[email protected]>
[Experimental Bot, please feedback here] This PR does not fully meet the NuttX requirements. While it provides a summary of what the change does, it lacks crucial information. Here's a breakdown of what's missing: Summary:
Impact:
Testing:
In short, the PR needs significant improvements before it can be considered for merging. It needs to be more thorough and provide the necessary information for reviewers to evaluate the change effectively. Follow the template more closely and fill in all the required sections. |
@@ -80,6 +80,9 @@ | |||
#endif | |||
stp \xreg0, \xreg1, [sp, #8 * REG_ELR] | |||
|
|||
mrs \xreg0, sctlr_el1 | |||
str \xreg0, [sp, #8 * REG_SCTLR_EL1] |
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.
str \xreg0, [sp, #8 * REG_SCTLR_EL1] | |
str \xreg0, [sp, #8 * REG_SCTLR_EL1] |
let's try to reduce the code size first. |
@W-M-R some optimization can be done:
|
Note: Please adhere to Contributing Guidelines.
Summary
Impact
Update this section, where applicable, on how change affects users,
build process, hardware, documentation, security, compatibility, etc.
Testing
Update this section with details on how did you verify the change,
what Host was used for build (OS, CPU, compiler, ..), what Target was
used for verification (arch, board:config, ..), etc. Providing build
and runtime logs from before and after change is highly appreciated.