Skip to content

Commit

Permalink
[hal] Save and restore tls context under uspace feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Azure-stars committed Sep 18, 2024
1 parent bd00a97 commit 55f33cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/axhal/src/arch/x86_64/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ impl TaskContext {
self.ext_state.save();
next_ctx.ext_state.restore();
}
#[cfg(feature = "tls")]
#[cfg(any(feature = "tls", feature = "uspace"))]
unsafe {
self.fs_base = super::read_thread_pointer();
super::write_thread_pointer(next_ctx.fs_base);
Expand Down

0 comments on commit 55f33cd

Please sign in to comment.