#include "libc.h"
Functions | |
vaddr_t | pgalloc2 (asid_t asid, paddr_t fixed_pa, int nb_pgs, paddr_t *pa_returned) |
vaddr_t | pgalloc (asid_t asid, int nb_pgs) |
int | pgfree (asid_t asid, vaddr_t vpages, int nb_pgs) |
int | ppgalloc (asid_t asid, int nb_pgs, paddr_t *pa_returned, int *nb_pgs_returned) |
int | bigfree (t_pgset *set) |
t_pgset * | bigalloc (asid_t asid, int nb_pgs) |
void | bigdump (t_pgset *set) |
|
allocate a huge virtual zone composed of many small physical zones |
|
debug |
|
|
|
alloc phys pages + vpages and vmap them |
|
same thing as pgalloc(3) excepted that it is possible to specify a fixed paddr and also retrieve physical addr choosem. pa_returned might be NULL. |
|
|
|
try to alloc nb_pgs or less |