Expand description
Architecture-specific types and operations.
Structs
- A wrapper of the Global Descriptor Table (GDT) with maximum 16 entries.
- 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.
- Saved registers when a trap (interrupt or exception) occurs.
Functions
- Makes the current CPU to ignore interrupts.
- Allows the current CPU to respond to interrupts.
- first_into_user
monolithic
To handle the first time into the user space - Flushes the TLB.
- Halt the current CPU.
- Returns whether the current CPU is allowed to respond to interrupts.
- Reads the register that stores the current page table root.
- Reads the thread pointer of the current CPU.
- read_trapframe_from_kstack
monolithic
To read the trap frame from the kernel stack - To switch the context between two tasks
- Relaxes the current CPU and waits for interrupts.
- Writes the register to update the current page table root.
- Writes the register to update the current page table root.
- Writes the thread pointer of the current CPU.
- write_trapframe_to_kstack
monolithic
To write the trap frame into the kernel stack