Skip to content

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

Merged
merged 4 commits into from
Nov 16, 2024
Merged

Typo fix in TaskStateSegment comment #504

merged 4 commits into from
Nov 16, 2024

Conversation

mrjbom
Copy link
Contributor

@mrjbom mrjbom commented Oct 19, 2024

No description provided.

@mrjbom mrjbom changed the title Typo fix Typo fix in TaskStateSegment comment Oct 19, 2024
@@ -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.
Copy link
Member

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?

@mrjbom
Copy link
Contributor Author

mrjbom commented Oct 20, 2024

@Freax13, now the description is the most accurate

@Freax13
Copy link
Member

Freax13 commented Oct 20, 2024

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.

@mrjbom
Copy link
Contributor Author

mrjbom commented Oct 20, 2024

I think it's clear now

@mrjbom mrjbom requested a review from Freax13 October 21, 2024 19:44
Copy link
Member

@Freax13 Freax13 left a 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!

mrjbom and others added 4 commits November 16, 2024 13:01
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>
@Freax13
Copy link
Member

Freax13 commented Nov 16, 2024

I rebased this PR onto master to fix CI.

@Freax13 Freax13 merged commit dc222cb into rust-osdev:master Nov 16, 2024
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants