-
Notifications
You must be signed in to change notification settings - Fork 133
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
Typo fix in TaskStateSegment comment #504
Conversation
@@ -6,7 +6,7 @@ use core::mem::size_of; | |||
/// In 64-bit mode the TSS holds information that is not | |||
/// directly related to the task-switch mechanism, | |||
/// but is used for finding kernel level stack | |||
/// if interrupts arrive while in kernel mode. |
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.
Technically the comment is correct for both kernel and user mode. I'm guessing you are thinking of the privilege stack table which is relevant when an interrupt/exception occurs in user mode, but the TSS also contains the interrupt stack table which is also relevant in kernel mode. Can you please reword the comment?
e2b05fc
to
20a1bb0
Compare
@Freax13, now the description is the most accurate |
Could you please mention interrupts/exceptions in the comment? I feel that without this it may not be clear when stack switching might be useful. |
390327e
to
aca4e06
Compare
I think it's clear now |
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, thank you for your contribution!
Co-authored-by: Tom Dohrmann <[email protected]>
Co-authored-by: Tom Dohrmann <[email protected]>
Co-authored-by: Tom Dohrmann <[email protected]>
I rebased this PR onto master to fix CI. |
No description provided.