FreeBSD/sys/arm/arm/physmem.c
/*
 * Process all the regions added earlier into the global avail lists.
 *
 * Updates the kernel global 'physmem' with the number of physical pages
 * available for use (all pages not in any exclusion region).
 *
 * Updates the kernel global 'Maxmem' with the page number one greater then the
 * last page of physical memory in the system.
 */
Process all the regions added earlier into the global avail lists.
Updates the kernel global 'physmem' with the number of physical pages
available for use (all pages not in any exclusion region).

Updates the kernel global 'Maxmem' with the page number one greater then the
last page of physical memory in the system.
Process all the regions added earlier into the global avail lists . Updates the kernel global ' physmem ' with the number of physical pages available for use ( all pages not in any exclusion region ) . Updates the kernel global ' Maxmem ' with the page number one greater then the last page of physical memory in the system .
void
arm_physmem_init_kernel_globals(void)
{
	size_t nextidx;
	regions_to_avail(dump_avail, EXFLAG_NODUMP, NULL);
	nextidx = regions_to_avail(phys_avail, EXFLAG_NOALLOC, &physmem);
	if (nextidx == 0)
		panic("No memory entries in phys_avail");
	Maxmem = atop(phys_avail[nextidx - 1]);
}
void arm_physmem_init_kernel_globals ( void ) { size_t nextidx ; regions_to_avail ( dump_avail , EXFLAG_NODUMP , NULL ) ; nextidx = regions_to_avail ( phys_avail , EXFLAG_NOALLOC , & physmem ) ; if ( nextidx == 0 ) panic ( " " ) ; Maxmem = atop ( phys_avail [ nextidx - 1 ] ) ; }
Process all the regions added earlier into the global avail lists.
Process all the regions added earlier into the global avail lists .