Set the interrupt stack table entry to a given virtual address This is called to set the kernel stack of the current process
(index: usize, stack_end: VirtAddr)
| 82 | /// |
| 83 | /// This is called to set the kernel stack of the current process |
| 84 | pub fn set_interrupt_stack_table(index: usize, stack_end: VirtAddr) { |
| 85 | TSS.lock().interrupt_stack_table[index] = stack_end; |
| 86 | } |
| 87 | |
| 88 | use x86_64::structures::gdt::{GlobalDescriptorTable, Descriptor, SegmentSelector}; |
| 89 |