Documentation ¶
Index ¶
- Constants
- func CS() uintptr
- func Cli()
- func Cr2() uintptr
- func Flags() uintptr
- func FuncPC(f interface{}) uintptr
- func Fxsave(addr uintptr)
- func Hlt()
- func Inb(port uint16) byte
- func Inl(port uint16) uint32
- func Memclr(p uintptr, n int)
- func Outb(port uint16, data byte)
- func Outl(port uint16, data uint32)
- func SetAX(val uintptr)
- func Sti()
- func UnsafeBuffer(p uintptr, n int) []byte
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 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 UnsafeBuffer ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.