-
Notifications
You must be signed in to change notification settings - Fork 143
Typo fix in TaskStateSegment comment #504
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
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?
@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. |
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 <Erbse.13@gmx.de>
Co-authored-by: Tom Dohrmann <Erbse.13@gmx.de>
Co-authored-by: Tom Dohrmann <Erbse.13@gmx.de>
I rebased this PR onto master to fix CI. |
No description provided.