Skip to content
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

Merged
merged 4 commits into from
Nov 16, 2024
Merged

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 mrjbom force-pushed the master branch 3 times, most recently from e2b05fc to 20a1bb0 Compare October 20, 2024 13:56
@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 mrjbom force-pushed the master branch 2 times, most recently from 390327e to aca4e06 Compare October 20, 2024 21:27
@mrjbom
Copy link
Contributor Author

mrjbom commented Oct 20, 2024

I think it's clear now

src/structures/tss.rs Outdated Show resolved Hide resolved
src/structures/tss.rs Outdated Show resolved Hide resolved
src/structures/tss.rs Outdated Show resolved Hide resolved
@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!

@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