Expand description
Architecture-specific types and operations.
Structs§
- Extended
State - Extended state of a task, such as FP/SIMD states.
- Fxsave
Area - A 512-byte memory region for the FXSAVE/FXRSTOR instruction to save and restore the x87 FPU, MMX, XMM, and MXCSR registers.
- GdtStruct
- A wrapper of the Global Descriptor Table (GDT) with maximum 16 entries.
- IdtStruct
- A wrapper of the Interrupt Descriptor Table (IDT).
- Task
Context - Saved hardware states of a task.
- Trap
Frame - Saved registers when a trap (interrupt or exception) occurs.
- Uspace
Context uspace
- Context to enter user space.
Functions§
- cpu_
init - Initializes CPU states on the current CPU.
- disable_
irqs - Makes the current CPU to ignore interrupts.
- enable_
irqs - Allows the current CPU to respond to interrupts.
- flush_
tlb - Flushes the TLB.
- halt
- Halt the current CPU.
- init_
gdt - Initializes the per-CPU TSS and GDT structures and loads them into the current CPU.
- init_
idt - Initializes the global IDT and loads it into the current CPU.
- init_
syscall uspace
- Initializes syscall support and setups the syscall handler.
- irqs_
enabled - Returns whether the current CPU is allowed to respond to interrupts.
- read_
page_ table_ root - Reads the register that stores the current page table root.
- read_
thread_ pointer - Reads the thread pointer of the current CPU.
- tss_
get_ rsp0 - Returns the stack pointer for privilege level 0 (RSP0) of the current TSS.
- tss_
set_ ⚠rsp0 - Sets the stack pointer for privilege level 0 (RSP0) of the current TSS.
- wait_
for_ irqs - Relaxes the current CPU and waits for interrupts.
- write_
page_ ⚠table_ root - Writes the register to update the current page table root.
- write_
thread_ ⚠pointer - Writes the thread pointer of the current CPU.