next up previous contents index
Next: 13.11.4 phys_lmm_add: Add memory Up: (X86 PC) Base Environment: Previous: 13.11.2 phys_mem_max: Highest physical

13.11.3 phys_lmm_init: Initialize kernel physical memory LMM

   

SYNOPSIS

#include <oskit/x86/pc/phys_lmm.h>

void phys_lmm_init(void);

DESCRIPTION

This routine sets up malloc_lmm with three physical memory regions, one for each of the memory types described in phys_lmm.h. No actual memory is added to those regions. You can then call phys_lmm_add() to add memory to those regions. In the base environment, base_multiboot_init_mem handles this chore.

DEPENDENCIES

malloc_lmm
12.5.1
lmm_add_region
22.6.2
phystokv
13.6.2



Utah Flux Research Group