Skip to main content

Module asm

Module asm 

Source
Expand description

Wrapper functions for assembly instructions.

Functions§

address_space_tag_capacity
Returns the number of usable x86 PCID values, including reserved PCID 0.
disable_irqs
Makes the current CPU to ignore interrupts.
enable_irqs
Allows the current CPU to respond to interrupts.
flush_icache_all
Flushes the entire instruction cache.
flush_tlb
Flushes the TLB.
halt
Halt the current CPU.
install_user_address_spaceuspace
Installs one complete userspace identity into CR3.
irqs_enabled
Returns whether the current CPU is allowed to respond to interrupts.
read_kernel_page_table
Reads the current page table root register for kernel space (CR3).
read_user_page_table
Reads the current page table root register for user space (CR3).
update_mmu_cache
Makes a page-table entry installed by the local page-fault handler visible before retrying the faulting instruction.
user_access_ok_pageuspace
Lock-free EL0/user access probe. No hardware address-translation probe is wired up on this architecture yet, so always report a present-page probe miss and let the caller take the locked slow path (correctness preserved).
user_copyuspace
Copies data from source to destination, where addresses may be in user space. Equivalent to memcpy.
wait_for_irqs
Relaxes the current CPU and waits for interrupts.
wait_for_irqs_disabled
Waits for an interrupt after the caller masks local IRQ delivery.
write_kernel_page_table
Writes the register to update the current page table root for kernel space (CR3).
write_user_page_table
Writes the register to update the current page table root for user space (CR3).