sys

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const PageSize = 4 << 10
View Source
const PtrSize = 4 << (^uintptr(0) >> 63) // unsafe.Sizeof(uintptr(0)) but an ideal const

Variables

This section is empty.

Functions

func Cli

func Cli()

func Cr2

func Cr2() uintptr

func Flags

func Flags() uintptr

func FuncPC

func FuncPC(f interface{}) uintptr

funcPC returns the entry PC of the function f. It assumes that f is a func value. Otherwise the behavior is undefined. CAREFUL: In programs with plugins, funcPC can return different values for the same function (because there are actually multiple copies of the same function in the address space). To be safe, don't use the results of this function in any == expression. It is only safe to use the result as an address at which to start executing code.

func Fxsave added in v0.2.0

func Fxsave(addr uintptr)

func Hlt

func Hlt()

func Inb

func Inb(port uint16) byte

func Inl

func Inl(port uint16) uint32

func Memclr

func Memclr(p uintptr, n int)

func Mfence

func Mfence()

func Outb

func Outb(port uint16, data byte)

func Outl

func Outl(port uint16, data uint32)

func SetAX added in v0.2.0

func SetAX(val uintptr)

func Sti

func Sti()

func UnsafeBuffer

func UnsafeBuffer(p uintptr, n int) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL