printk("Memory: %luk/%luk available (%dk kernel code, %dk reserved, %dk data, %dk init)\n", 
printk("Memory: %luk/%luk available (%ldk kernel code, %ldk reserved, %ldk data, %ldk init)\n", 
void __init mem_init(void){	int codesize, reservedpages, datasize, initsize;	int tmp;#ifdef CONFIG_SWIOTLB	if (!iommu_aperture &&	    (end_pfn >= 0xffffffff>>PAGE_SHIFT || force_iommu))	       swiotlb = 1;	if (swiotlb)		swiotlb_init();	#endif	/* How many end-of-memory variables you have, grandma! */	max_low_pfn = end_pfn;	max_pfn = end_pfn;	num_physpages = end_pfn;	high_memory = (void *) __va(end_pfn * PAGE_SIZE);	/* clear the zero-page */	memset(empty_zero_page, 0, PAGE_SIZE);	reservedpages = 0;	/* this will put all low memory onto the freelists */#ifdef CONFIG_NUMA	totalram_pages += numa_free_all_bootmem();	tmp = 0;	/* should count reserved pages here for all nodes */ #else#ifdef CONFIG_FLATMEM	max_mapnr = end_pfn;	if (!mem_map) BUG();#endif	totalram_pages += free_all_bootmem();	for (tmp = 0; tmp < end_pfn; tmp++)		/*		 * Only count reserved RAM pages		 */		if (page_is_ram(tmp) && PageReserved(pfn_to_page(tmp)))			reservedpages++;#endif	after_bootmem = 1;	codesize =  (unsigned long) &_etext - (unsigned long) &_text;	datasize =  (unsigned long) &_edata - (unsigned long) &_etext;	initsize =  (unsigned long) &__init_end - (unsigned long) &__init_begin;	/* Register memory areas for /proc/kcore */	kclist_add(&kcore_mem, __va(0), max_low_pfn << PAGE_SHIFT); 	kclist_add(&kcore_vmalloc, (void *)VMALLOC_START, 		   VMALLOC_END-VMALLOC_START);	kclist_add(&kcore_kernel, &_stext, _end - _stext);	kclist_add(&kcore_modules, (void *)MODULES_VADDR, MODULES_LEN);	kclist_add(&kcore_vsyscall, (void *)VSYSCALL_START, 				 VSYSCALL_END - VSYSCALL_START);	printk("Memory: %luk/%luk available (%dk kernel code, %dk reserved, %dk data, %dk init)\n",		(unsigned long) nr_free_pages() << (PAGE_SHIFT-10),		end_pfn << (PAGE_SHIFT-10),		codesize >> 10,		reservedpages << (PAGE_SHIFT-10),		datasize >> 10,		initsize >> 10);	/*	 * Subtle. SMP is doing its boot stuff late (because it has to	 * fork idle threads) - but it also needs low mappings for the	 * protected-mode entry to work. We zap these entries only after	 * the WP-bit has been tested.	 */#ifndef CONFIG_SMP	zap_low_mappings();#endif}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/0a43e4bf7489074c667f24b9670ecd88f6eb0a07/init.c/buggy/arch/x86_64/mm/init.c