kernels/linux-2.4.0/arch/ia64/mm/init.c
/*
 * Set up the page tables.
 */
Set up the page tables.
Set up the page tables .
void
paging_init (void)
{
	unsigned long max_dma, zones_size[MAX_NR_ZONES];
	clear_page((void *) ZERO_PAGE_ADDR);
	memset(zones_size, 0, sizeof(zones_size));
	max_dma = (PAGE_ALIGN(MAX_DMA_ADDRESS) >> PAGE_SHIFT);
	if (max_low_pfn < max_dma)
		zones_size[ZONE_DMA] = max_low_pfn;
	else {
		zones_size[ZONE_DMA] = max_dma;
		zones_size[ZONE_NORMAL] = max_low_pfn - max_dma;
	}
	free_area_init(zones_size);
}
void paging_init ( void ) { unsigned long max_dma , zones_size [ MAX_NR_ZONES ] ; clear_page ( ( void * ) ZERO_PAGE_ADDR ) ; memset ( zones_size , 0 , sizeof ( zones_size ) ) ; max_dma = ( PAGE_ALIGN ( MAX_DMA_ADDRESS ) >> PAGE_SHIFT ) ; if ( max_low_pfn < max_dma ) zones_size [ ZONE_DMA ] = max_low_pfn ; else { zones_size [ ZONE_DMA ] = max_dma ; zones_size [ ZONE_NORMAL ] = max_low_pfn - max_dma ; } free_area_init ( zones_size ) ; }
Set up the page tables.
Set up the page tables .
/* initialize mem_map[] */