StupidOS Memory Manager
mm.inc | StupidOS Memory Manager |
Memory Layout | |
Macros | |
KV2P | Convert virtual address to physical |
KP2V | Convert physical address to virtual |
Functions | |
mm_kmap | |
mm_clone_pte | |
mm_clone_pgdir | |
mm_init | Initialize the memory manager |
mm_mmap | |
mm_munmap |
Virtual 0xFFFFFFFF +---------------+ | | | Device Memory | | | +---------------+ | | | Kernel Heap | | | KERN_END +---------------+ | | | Stupid Kernel | | | 0xC0100000 +---------------+ | I/O Space and | | phys memory | | Lower than 1M | kernel mode only 0xC0000000 +---------------+ | | user mode | userspace | | | 0x00000000 +---------------+