Alu Powerbook
Peter Grehan
grehan at freebsd.org
Fri Feb 6 18:41:14 PST 2004
Hi Suleiman,
> Could you send me the patch to powerpc/cpu.c, as i don't have a usb
> keyboard and have the ROOTDEVNAME hard coded in the kernel?
Patch attached: let me know if it works and I'll commit it.
Also, you can avoid hard-coding ROOTDEVNAME by forcing the root dev
at the loader prompt:
OK set vfs.root.mountfrom=<root spec>
where <root spec> is what you would have typed at the mountroot>
prompt.
later,
Peter.
-------------- next part --------------
Index: include/spr.h
===================================================================
RCS file: /home/ncvs/src/sys/powerpc/include/spr.h,v
retrieving revision 1.3
diff -u -r1.3 spr.h
--- include/spr.h 5 Feb 2003 12:04:29 -0000 1.3
+++ include/spr.h 6 Feb 2004 09:06:35 -0000
@@ -117,8 +117,10 @@
#define IBM405GP 0x4011
#define IBM405L 0x4161
#define IBM750FX 0x7000
+#define MPC745X_P(v) ((v & 0xFFFC) == 0x8000)
#define MPC7450 0x8000
#define MPC7455 0x8001
+#define MPC7457 0x8002
#define MPC7410 0x800c
#define MPC8245 0x8081
Index: powerpc/cpu.c
===================================================================
RCS file: /home/ncvs/src/sys/powerpc/powerpc/cpu.c,v
retrieving revision 1.3
diff -u -r1.3 cpu.c
--- powerpc/cpu.c 26 Sep 2003 09:02:24 -0000 1.3
+++ powerpc/cpu.c 6 Feb 2004 09:08:33 -0000
@@ -92,6 +92,7 @@
{ "Motorola PowerPC 7410", MPC7410, REVFMT_MAJMIN },
{ "Motorola PowerPC 7450", MPC7450, REVFMT_MAJMIN },
{ "Motorola PowerPC 7455", MPC7455, REVFMT_MAJMIN },
+ { "Motorola PowerPC 7457", MPC7457, REVFMT_MAJMIN },
{ "Motorola PowerPC 8240", MPC8240, REVFMT_MAJMIN },
{ "Unknown PowerPC CPU", 0, REVFMT_HEX }
};
@@ -173,6 +174,7 @@
#endif
break;
+ case MPC7457:
case MPC7455:
case MPC7450:
/* Disable BTIC on 7450 Rev 2.0 or earlier */
@@ -210,6 +212,7 @@
switch (vers) {
case MPC7450:
case MPC7455:
+ case MPC7457:
bitmask = HID0_7450_BITMASK;
break;
default:
@@ -224,6 +227,7 @@
case MPC7410:
case MPC7450:
case MPC7455:
+ case MPC7457:
cpu_print_speed();
printf("\n");
cpu_config_l2cr(cpuid, vers);
@@ -304,7 +308,9 @@
printf("cpu%d: ", cpuid);
if (l2cr & L2CR_L2E) {
- if (vers == MPC7450 || vers == MPC7455) {
+ if (vers == MPC7450 ||
+ vers == MPC7455 ||
+ vers == MPC7457) {
u_int l3cr;
printf("256KB L2 cache");
More information about the freebsd-ppc
mailing list