Skip to content

Commit

Permalink
Merge pull request #504 from mrjbom/master
Browse files Browse the repository at this point in the history
Typo fix in TaskStateSegment comment
  • Loading branch information
Freax13 authored Nov 16, 2024
2 parents 08e0172 + 6d94a46 commit dc222cb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/structures/tss.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,17 @@ 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.
/// but is used for stack switching when an interrupt or exception occurs.
#[derive(Debug, Clone, Copy)]
#[repr(C, packed(4))]
pub struct TaskStateSegment {
reserved_1: u32,
/// The full 64-bit canonical forms of the stack pointers (RSP) for privilege levels 0-2.
/// The stack pointers used when a privilege level change occurs from a lower privilege level to a higher one.
pub privilege_stack_table: [VirtAddr; 3],
reserved_2: u64,
/// The full 64-bit canonical forms of the interrupt stack table (IST) pointers.
/// The stack pointers used when an entry in the Interrupt Descriptor Table has an IST value other than 0.
pub interrupt_stack_table: [VirtAddr; 7],
reserved_3: u64,
reserved_4: u16,
Expand Down

0 comments on commit dc222cb

Please sign in to comment.