Documentation ¶
Index ¶
Constants ¶
View Source
const ( PGSIZE = 4 << 10 // 1-20 Mb memory reverse for kernel image MEMSTART = 20 << 20 // 默认可以使用的物理内存终止地址,如果能从grub那里获取就用grub的 DEFAULT_MEMTOP = 256 << 20 // 虚拟内存起始地址 VMSTART = 1 << 30 PTE_P = 0x001 PTE_W = 0x002 PTE_U = 0x004 )
Variables ¶
This section is empty.
Functions ¶
func SysFixedMmap ¶ added in v0.2.0
func SysFixedMmap(addr, size uintptr)
SysFixedMmap map the same physical address to the virtual address run in user mode
Types ¶
Click to show internal directories.
Click to hide internal directories.