Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Dec 2005 05:31:10 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 87999 for review
Message-ID:  <200512100531.jBA5VA2u077510@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=87999

Change 87999 by imp@imp_Speedy on 2005/12/10 05:30:47

	remove obsolete debug statements.

Affected files ...

.. //depot/projects/arm/src/sys/arm/at91/kb920x_machdep.c#10 edit

Differences ...

==== //depot/projects/arm/src/sys/arm/at91/kb920x_machdep.c#10 (text+ko) ====

@@ -284,10 +284,12 @@
 	pmap_map_chunk(l1pagetable, KERNBASE, KERNPHYSADDR,
 	   (((uint32_t)(&end) - KERNBASE) + PAGE_SIZE) & ~(PAGE_SIZE - 1),
 	    VM_PROT_READ|VM_PROT_WRITE, PTE_CACHE);
+#if 1
 	/* XXX PA == VA XXX */
 	pmap_map_chunk(l1pagetable, KERNPHYSADDR, KERNPHYSADDR,
 	  (((uint32_t)(&end) - KERNBASE) + L1_S_SIZE) & ~(L1_S_SIZE - 1),
 	    VM_PROT_READ|VM_PROT_WRITE, PTE_CACHE);
+#endif
 	afterkern = round_page(((vm_offset_t)&end + L1_S_SIZE) & ~(L1_S_SIZE 
 	    - 1));
 	for (i = 0; i < KERNEL_PT_AFKERNEL_NUM; i++) {
@@ -325,15 +327,10 @@
 
 	printf("pa is %x va is %x\n", kernel_l1pt.pv_pa, kernel_l1pt.pv_va);
 	pmap_devmap_bootstrap(l1pagetable, kb920x_devmap);
-	printf("1");
 	cpu_domains((DOMAIN_CLIENT << (PMAP_DOMAIN_KERNEL*2)) | DOMAIN_CLIENT);
-	printf("1");
 	setttb(kernel_l1pt.pv_pa);
-	printf("1");
 	cpu_tlb_flushID();
-	printf("1");
 	cpu_domains(DOMAIN_CLIENT << (PMAP_DOMAIN_KERNEL*2));
-	printf("1");
 
 	/*
 	 * Pages were allocated during the secondary bootstrap for the
@@ -368,7 +365,6 @@
 
 	/* Set stack for exception handlers */
 	
-	printf("9");
 	data_abort_handler_address = (u_int)data_abort_handler;
 	prefetch_abort_handler_address = (u_int)prefetch_abort_handler;
 	undefined_handler_address = (u_int)undefinedinstruction_bounce;
@@ -384,9 +380,6 @@
 	
 	arm_vector_init(ARM_VECTORS_LOW, ARM_VEC_ALL);
 
-
-	printf("a");
-
 	pmap_curmaxkvaddr = afterkern + 0x100000 * (KERNEL_PT_KERN_NUM - 1);
 	pmap_bootstrap(freemempos,
 	    KERNVIRTADDR + 3 * memsize,
@@ -395,7 +388,6 @@
 	msgbufinit(msgbufp, MSGBUF_SIZE);
 	mutex_init();
 	
-	printf("b");
 	i = 0;
 	dump_avail[0] = KERNPHYSADDR;
 	dump_avail[1] = KERNPHYSADDR + memsize;
@@ -410,9 +402,7 @@
 	init_param1();
 	init_param2(memsize / PAGE_SIZE);
 	avail_end = KERNPHYSADDR + memsize - 1;
-	printf("c");
 	kdb_init();
-	printf("d");
 	return ((void *)(kernelstack.pv_va + USPACE_SVC_STACK_TOP -
 	    sizeof(struct pcb)));
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200512100531.jBA5VA2u077510>