next up previous contents index
Next: 11.3.7 smp_init_paging: Tell the Up: 11.3 API reference Previous: 11.3.5 smp_get_num_cpus: Returns the

11.3.6 smp_map_range: Request the OS map physical memory

 

SYNOPSIS

#include <oskit/smp.h>

oskit_addr_t smp_map_range(oskit_addr_t start, oskit_size_t size);

DESCRIPTION

This function is a hook provided by the host OS to allow the SMP library to request physical memory be mapped into its virtual address space. This is called by smp_init_paging.

Note that this could be implemented using osenv_mem_map_phys.

RETURNS

The virtual address where the physical pages are mapped. Returns zero if unable to map the memory.



University of Utah Flux Research Group