From owner-freebsd-ppc@FreeBSD.ORG Fri Feb 6 18:41:14 2004 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 499B816A4CE for ; Fri, 6 Feb 2004 18:41:14 -0800 (PST) Received: from liberty.onthenet.com.au (liberty.OntheNet.com.au [203.22.124.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E97043D41 for ; Fri, 6 Feb 2004 18:41:11 -0800 (PST) (envelope-from grehan@freebsd.org) Received: from freebsd.org (CPE-30-4.dsl.onthenet.net [203.144.30.4]) i172f8ZG082112; Sat, 7 Feb 2004 12:41:09 +1000 (EST) (envelope-from grehan@freebsd.org) Message-ID: <402450B7.9030106@freebsd.org> Date: Sat, 07 Feb 2004 12:43:03 +1000 From: Peter Grehan User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3.1) Gecko/20030524 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Suleiman Souhlal References: <20040206000245.20a84f0c@zZzZ.segfaulted.com> <40232DA3.5090508@freebsd.org> <20040206013218.4eb1cd37@zZzZ.segfaulted.com> <40235C60.9010509@freebsd.org> <20040206115743.2f6ad7af@zZzZ.segfaulted.com> In-Reply-To: <20040206115743.2f6ad7af@zZzZ.segfaulted.com> Content-Type: multipart/mixed; boundary="------------000408040005020106010808" cc: freebsd-ppc@freebsd.org Subject: Re: Alu Powerbook X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Feb 2004 02:41:14 -0000 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= where 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--