PERFORCE change 132550 for review
Warner Losh
imp at FreeBSD.org
Fri Jan 4 22:02:12 PST 2008
http://perforce.freebsd.org/chv.cgi?CH=132550
Change 132550 by imp at 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);
More information about the p4-projects
mailing list