File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -5,16 +5,17 @@ use core::mem::size_of;
5
5
6
6
/// In 64-bit mode the TSS holds information that is not
7
7
/// directly related to the task-switch mechanism,
8
- /// but is used for finding kernel level stack
9
- /// if interrupts arrive while in kernel mode.
8
+ /// but is used for stack switching when an interrupt or exception occurs.
10
9
#[ derive( Debug , Clone , Copy ) ]
11
10
#[ repr( C , packed( 4 ) ) ]
12
11
pub struct TaskStateSegment {
13
12
reserved_1 : u32 ,
14
13
/// The full 64-bit canonical forms of the stack pointers (RSP) for privilege levels 0-2.
14
+ /// The stack pointers used when a privilege level change occurs from a lower privilege level to a higher one.
15
15
pub privilege_stack_table : [ VirtAddr ; 3 ] ,
16
16
reserved_2 : u64 ,
17
17
/// The full 64-bit canonical forms of the interrupt stack table (IST) pointers.
18
+ /// The stack pointers used when an entry in the Interrupt Descriptor Table has an IST value other than 0.
18
19
pub interrupt_stack_table : [ VirtAddr ; 7 ] ,
19
20
reserved_3 : u64 ,
20
21
reserved_4 : u16 ,
You can’t perform that action at this time.
0 commit comments