|
static void | cpuid (uint32_t leaf, uint32_t *eax, uint32_t *ebx, uint32_t *ecx, uint32_t *edx) |
|
static uint32_t | cpuid_eax (uint32_t leaf) |
|
static uint32_t | cpuid_ebx (uint32_t leaf) |
|
static uint32_t | cpuid_ecx (uint32_t leaf) |
|
static uint32_t | cpuid_edx (uint32_t leaf) |
|
static void | pv_cpuid (uint32_t leaf, uint32_t *eax, uint32_t *ebx, uint32_t *ecx, uint32_t *edx) |
|
static void | cpuid_count (uint32_t leaf, uint32_t subleaf, uint32_t *eax, uint32_t *ebx, uint32_t *ecx, uint32_t *edx) |
|
static void | pv_cpuid_count (uint32_t leaf, uint32_t subleaf, uint32_t *eax, uint32_t *ebx, uint32_t *ecx, uint32_t *edx) |
|
static uint8_t | inb (uint16_t port) |
|
static uint16_t | inw (uint16_t port) |
|
static uint32_t | inl (uint16_t port) |
|
static void | outb (uint8_t val, uint16_t port) |
|
static void | outw (uint16_t val, uint16_t port) |
|
static void | outl (uint32_t val, uint16_t port) |
|
static unsigned int | read_cs (void) |
|
static unsigned int | read_ds (void) |
|
static unsigned int | read_es (void) |
|
static unsigned int | read_fs (void) |
|
static unsigned int | read_gs (void) |
|
static unsigned int | read_ss (void) |
|
static void | write_cs (unsigned long cs) |
|
static void | write_ds (unsigned int ds) |
|
static void | write_es (unsigned int es) |
|
static void | write_fs (unsigned int fs) |
|
static void | write_gs (unsigned int gs) |
|
static void | write_ss (unsigned int ss) |
|
static unsigned long | read_flags (void) |
|
static void | write_flags (unsigned long flags) |
|
static unsigned long | read_cr0 (void) |
|
static unsigned long | read_cr2 (void) |
|
static unsigned long | read_cr3 (void) |
|
static unsigned long | read_cr4 (void) |
|
static unsigned long | read_cr8 (void) |
|
static void | write_cr0 (unsigned long cr0) |
|
static void | write_cr2 (unsigned long cr2) |
|
static void | write_cr3 (unsigned long cr3) |
|
static void | write_cr4 (unsigned long cr4) |
|
static bool | write_cr4_safe (unsigned long cr4) |
|
static void | write_cr8 (unsigned long cr8) |
|
static uint32_t | read_mxcsr (void) |
|
static void | write_mxcsr (uint32_t mxcsr) |
|
static void | invlpg (const void *va) |
|
static void | lgdt (const desc_ptr *gdtr) |
|
static void | lidt (const desc_ptr *idtr) |
|
static void | lldt (unsigned int sel) |
|
static void | ltr (unsigned int sel) |
|
static void | sgdt (desc_ptr *gdtr) |
|
static void | sidt (desc_ptr *idtr) |
|
static unsigned int | sldt (void) |
|
static unsigned int | str (void) |
|
static uint64_t | xgetbv (uint32_t index) |
|
static void | xsetbv (uint32_t index, uint64_t value) |
|
static uint64_t | read_xcr0 (void) |
|
static void | write_xcr0 (uint64_t xcr0) |
|
static void | clflush (const void *ptr) |
|
static void | flush_tlb (void) |
|