Documentation ¶
Index ¶
- Constants
- func Alloc() uintptr
- func Fixmap(va, pa, size uintptr)
- func Init()
- func Mmap(va, size uintptr) uintptr
- func Munmap(va, size uintptr) bool
- func PoolInit(p *Pool, size uintptr)
- func Sbrk(n uintptr) uintptr
- func SysFixedMmap(vaddr, paddr, size uintptr)
- func SysMmap(vaddr, size uintptr) uintptr
- type Pool
Constants ¶
View Source
const ( PGSIZE = 4 << 10 // 1-100 Mb memory reverse for kernel image MEMSTART = 100 << 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 ¶
func SysFixedMmap(vaddr, paddr, 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.