Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/subr_physmem.c
Show First 20 Lines • Show All 382 Lines • ▼ Show 20 Lines | |||||
size_t | size_t | ||||
physmem_avail(vm_paddr_t *avail, size_t maxavail) | physmem_avail(vm_paddr_t *avail, size_t maxavail) | ||||
{ | { | ||||
return (regions_to_avail(avail, EXFLAG_NOALLOC, maxavail, 0, NULL, NULL)); | return (regions_to_avail(avail, EXFLAG_NOALLOC, maxavail, 0, NULL, NULL)); | ||||
} | } | ||||
size_t | |||||
physmem_hwregions(vm_paddr_t *regions, size_t maxregions) | |||||
{ | |||||
return (regions_to_avail(regions, 0, maxregions, 0, NULL, NULL)); | |||||
} | |||||
/* | /* | ||||
* Process all the regions added earlier into the global avail lists. | * Process all the regions added earlier into the global avail lists. | ||||
* | * | ||||
* Updates the kernel global 'physmem' with the number of physical pages | * Updates the kernel global 'physmem' with the number of physical pages | ||||
* available for use (all pages not in any exclusion region). | * available for use (all pages not in any exclusion region). | ||||
* | * | ||||
* Updates the kernel global 'Maxmem' with the page number one greater then the | * Updates the kernel global 'Maxmem' with the page number one greater then the | ||||
* last page of physical memory in the system. | * last page of physical memory in the system. | ||||
Show All 29 Lines |