Documentation ¶
Index ¶
- func ActivePDT() uintptr
- func DisableInterrupts()
- func EnableInterrupts()
- func FlushTLBEntry(virtAddr uintptr)
- func Halt()
- func ID(leaf uint32) (uint32, uint32, uint32, uint32)
- func IsIntel() bool
- func PortReadByte(port uint16) uint8
- func PortReadDword(port uint16) uint32
- func PortReadWord(port uint16) uint16
- func PortWriteByte(port uint16, val uint8)
- func PortWriteDword(port uint16, val uint32)
- func PortWriteWord(port uint16, val uint16)
- func ReadCR2() uint64
- func SwitchPDT(pdtPhysAddr uintptr)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActivePDT ¶
func ActivePDT() uintptr
ActivePDT returns the physical address of the currently active page table.
func FlushTLBEntry ¶
func FlushTLBEntry(virtAddr uintptr)
FlushTLBEntry flushes a TLB entry for a particular virtual address.
func ID ¶
ID returns information about the CPU and its features. It is implemented as a CPUID instruction with EAX=leaf and returns the values in EAX, EBX, ECX and EDX.
func IsIntel ¶
func IsIntel() bool
IsIntel returns true if the code is running on an Intel processor.
func PortReadByte ¶
PortReadByte reads a uint8 value from the requested port.
func PortReadDword ¶
PortReadDword reads a uint32 value from the requested port.
func PortReadWord ¶
PortReadWord reads a uint16 value from the requested port.
func PortWriteByte ¶
PortWriteByte writes a uint8 value to the requested port.
func PortWriteDword ¶
PortWriteDword writes a uint32 value to the requested port.
func PortWriteWord ¶
PortWriteWord writes a uint16 value to the requested port.
Types ¶
This section is empty.