Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 07 Feb 2004 12:43:03 +1000
From:      Peter Grehan <grehan@freebsd.org>
To:        Suleiman Souhlal <refugee@segfaulted.com>
Cc:        freebsd-ppc@freebsd.org
Subject:   Re: Alu Powerbook
Message-ID:  <402450B7.9030106@freebsd.org>
In-Reply-To: <20040206115743.2f6ad7af@zZzZ.segfaulted.com>
References:  <20040206000245.20a84f0c@zZzZ.segfaulted.com> <40232DA3.5090508@freebsd.org>	<20040206013218.4eb1cd37@zZzZ.segfaulted.com> <40235C60.9010509@freebsd.org> <20040206115743.2f6ad7af@zZzZ.segfaulted.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------000408040005020106010808
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

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.



--------------000408040005020106010808
Content-Type: text/plain;
 name="7457.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="7457.txt"

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");

--------------000408040005020106010808--



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