Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Jan 2008 06:02:11 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 132550 for review
Message-ID:  <200801050602.m0562Beh019142@repoman.freebsd.org>

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

Change 132550 by imp@imp_paco-paco on 2008/01/05 06:02:00

	cpuinit removed.  Likely its needed, but not here.
	Start using #ifdef UNIMPLEMENTED so we can add that to the
	options file later and try to catch all the places I think
	we need to go back and implement later.  too bad I didn't do
	it before now...

Affected files ...

.. //depot/projects/mips2-jnpr/src/sys/mips/include/cpuconf.h#3 delete
.. //depot/projects/mips2-jnpr/src/sys/mips/include/md_var.h#6 edit
.. //depot/projects/mips2-jnpr/src/sys/mips/mips/machdep.c#7 edit

Differences ...

==== //depot/projects/mips2-jnpr/src/sys/mips/include/md_var.h#6 (text+ko) ====

@@ -61,6 +61,7 @@
 
 void	cpu_identify(void);
 void	mips_cpu_init(void);
+void	mips_proc0_init(void);
 
 /* Platform call-downs. */
 void	platform_identify(void);

==== //depot/projects/mips2-jnpr/src/sys/mips/mips/machdep.c#7 (text+ko) ====

@@ -94,7 +94,6 @@
 #endif
 
 #include <sys/random.h>
-#include <machine/cpuconf.h>
 #include <machine/ns16550.h>
 #include <net/if.h>
 
@@ -133,7 +132,9 @@
 #endif
 
 vm_offset_t phys_avail[10];
+#ifdef UNIMPLEMENTED
 struct platform platform;
+#endif
 
 vm_paddr_t	mips_wired_tlb_physmem_start;
 vm_paddr_t	mips_wired_tlb_physmem_end;
@@ -551,19 +552,21 @@
 	default:
 		break;
 	}
-
+#ifdef UNIMPLEMENTED
 	if (cputype >= ncpuinit) {
 		platform_not_supported(cputype);
 		/* NOTREACHED */
 	}
 	cpuinit[cputype].init(cputype);
-
+#endif
 	/* Do basic tuning, hz etc */
 	init_param1();
 
 	hardware_basic_init();
 
+#ifdef UNIMPLEMENTED
 	snprintf(cpu_model, sizeof(cpu_model), "%s", platform.model);
+#endif
 
 #if BOOTINFO_DEBUG
 	printf("boothowto = %x, bootdev = %x\n", boothowto, bootdev);



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