-
Notifications
You must be signed in to change notification settings - Fork 5
feat: improve context with more api #4
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
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: Asakura Mizu <asakuramizu111@gmail.com> Co-authored-by: mivik <mivikq@gmail.com>
this pr should be considered with a upcoming PR from oscomp/arceos#35 |
b05a663
to
83e8dd7
Compare
83e8dd7
to
30200be
Compare
mrs x1, tpidrro_el0 | ||
msr tpidr_el0, x1 |
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.
mrs x1, tpidrro_el0 | |
msr tpidr_el0, x1 | |
mrs x1, tpidr_el0 | |
msr tpidrro_el0, x1 |
@@ -0,0 +1,25 @@ | |||
use crate::asm::{read_thread_pointer, write_thread_pointer}; |
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.
Maybe we can put these code into uspace.rs
.
Any updates on this? Or I'll split this into two separate PRs later. |
This PR is a reviewed feature from downstream oscamp/arceos.
For further information, please refer to: oscomp/arceos#29 oscomp/arceos#35
Description
This pull request introduces significant updates across multiple architectures to improve context management, particularly around thread-local storage (TLS) and syscall argument handling. The changes include adding getter and setter methods for syscall arguments, instruction pointers, stack pointers, and TLS areas, as well as refactoring context-switching logic to better support kernel-space TLS.
Additional Notes
This is a step towards gradually merging downstream oscamp/arceos into the main branch.