From owner-freebsd-ppc Sun May 20 23:43: 0 2001 Delivered-To: freebsd-ppc@freebsd.org Received: from sr1.terra.com.br (sr1.terra.com.br [200.176.2.216]) by hub.freebsd.org (Postfix) with ESMTP id ABD3D37B422 for ; Sun, 20 May 2001 23:42:56 -0700 (PDT) (envelope-from borille@args.com.br) Received: from srv8-poa.poa.terra.com.br (srv8-poa.poa.terra.com.br [200.176.2.148]) by sr1.terra.com.br (8.9.3/8.9.3) with ESMTP id DAA18054 for ; Mon, 21 May 2001 03:42:55 -0300 Received: from [200.176.34.11] (cm-net-C8B0220B.poa.terra.com.br [200.176.34.11]) by srv8-poa.poa.terra.com.br (8.11.0/8.11.1) with ESMTP id f4L6gs605118 for ; Mon, 21 May 2001 03:42:54 -0300 Message-Id: <200105210642.f4L6gs605118@srv8-poa.poa.terra.com.br> X-Mailer: Microsoft Outlook Express Macintosh Edition - 4.5 (0410) Date: Sun, 20 May 2001 16:02:20 -0300 Subject: From: "Fabio Borille" To: freebsd-ppc@freebsd.org Mime-version: 1.0 X-Priority: 3 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Sender: owner-freebsd-ppc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ppc" in the body of the message From owner-freebsd-ppc Mon May 21 6:48:19 2001 Delivered-To: freebsd-ppc@freebsd.org Received: from mail.jeamland.net (rafe.jeamland.net [203.18.243.114]) by hub.freebsd.org (Postfix) with ESMTP id C9BE137B424; Mon, 21 May 2001 06:48:13 -0700 (PDT) (envelope-from benno@FreeBSD.org) Received: by mail.jeamland.net (Postfix, from userid 1000) id C5BB470606; Mon, 21 May 2001 23:48:12 +1000 (EST) Date: Mon, 21 May 2001 23:48:12 +1000 From: Benno Rice To: freebsd-ppc@freebsd.org Cc: freebsd-hackers@freebsd.org Subject: FreeBSD/powerpc work to date Message-ID: <20010521234812.B56326@rafe.jeamland.net> Reply-To: freebsd-ppc@freebsd.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="kORqDWCi7qDJ0mEj" Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-ppc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --kORqDWCi7qDJ0mEj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, =20 I've placed a snapshot of my work on FreeBSD/powerpc to date up at: http://people.freebsd.org/~benno/commit/ I'd like to commit this sometime in the next few days. This current snapsh= ot will get up to attempting to initialise VM and hang on my iMac (slot-loading model). There are some unresolved issues with pmap.c that are preventing it getting further at the moment. I'd like to commit this so as to allow more people to look at it, and also to get it under some form of change control. There are undoubtedly style bugs and numerous other problems with the code as it stands, however I'd like to get it in the tree now and sort these out later. Please feel free to review, comment, etc. The snapshot is in the form of a diff against -CURRENT and a tar.gz file containing new files that would need to be committed. Both of these files are rooted in src/sys. Replies set to go to freebsd-ppc. --=20 Benno Rice benno@FreeBSD.org --kORqDWCi7qDJ0mEj Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjsJHJwACgkQbQx7xhW+Eg47CwCgj+ovQucn7+0kQyaDn8io5CfL 0NQAoIHQhjVw/u2pVBw0XFa7B2XSLv96 =CXG2 -----END PGP SIGNATURE----- --kORqDWCi7qDJ0mEj-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ppc" in the body of the message From owner-freebsd-ppc Mon May 21 14:47:30 2001 Delivered-To: freebsd-ppc@freebsd.org Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id 457A537B422 for ; Mon, 21 May 2001 14:47:29 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.11.3/8.11.1) with ESMTP id f4LLlSE34942 for ; Mon, 21 May 2001 15:47:28 -0600 (MDT) (envelope-from imp@harmony.village.org) Message-Id: <200105212147.f4LLlSE34942@harmony.village.org> To: freebsd-ppc@FreeBSD.ORG Subject: Re: FreeBSD/powerpc work to date In-reply-to: Your message of "Mon, 21 May 2001 23:48:12 +1000." <20010521234812.B56326@rafe.jeamland.net> References: <20010521234812.B56326@rafe.jeamland.net> Date: Mon, 21 May 2001 15:47:28 -0600 From: Warner Losh Sender: owner-freebsd-ppc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <20010521234812.B56326@rafe.jeamland.net> Benno Rice writes: : I've placed a snapshot of my work on FreeBSD/powerpc to date up at: : http://people.freebsd.org/~benno/commit/ As near as I can tell, the diffs are good. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ppc" in the body of the message From owner-freebsd-ppc Mon May 21 17:23:14 2001 Delivered-To: freebsd-ppc@freebsd.org Received: from imf11bis.bellsouth.net (mail211.mail.bellsouth.net [205.152.58.151]) by hub.freebsd.org (Postfix) with ESMTP id C0E3837B422 for ; Mon, 21 May 2001 17:23:12 -0700 (PDT) (envelope-from rrodrig2@bellsouth.net) Received: from bellsouth.net ([216.76.175.230]) by imf11bis.bellsouth.net (InterMail vM.5.01.01.01 201-252-104) with ESMTP id <20010522002356.GJOH19887.imf11bis.bellsouth.net@bellsouth.net> for ; Mon, 21 May 2001 20:23:56 -0400 Message-ID: <3B096B33.D7C79709@bellsouth.net> Date: Mon, 21 May 2001 19:23:32 +0000 From: John X-Mailer: Mozilla 4.73C-CCK-MCD {C-UDP; EBM-APPLE} (Macintosh; U; PPC) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-ppc@FreeBSD.org Subject: I am curious Content-Type: text/plain; charset=us-ascii; x-mac-type="54455854"; x-mac-creator="4D4F5353" Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ppc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I am just wondering if a FreeBSD for the PowerPC Motorola chip, especially the G4 chip will be out anytime soon? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ppc" in the body of the message From owner-freebsd-ppc Tue May 22 2:45:36 2001 Delivered-To: freebsd-ppc@freebsd.org Received: from shutdown.com (adsl-151-202-29-28.nyc.adsl.bellatlantic.net [151.202.29.28]) by hub.freebsd.org (Postfix) with SMTP id DA45C37B43C for ; Tue, 22 May 2001 02:45:28 -0700 (PDT) (envelope-from j@shutdown.com) From: "John" To: Subject: Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Date: Tue, 22 May 2001 04:24:48 -0700 Reply-To: "John" Content-Transfer-Encoding: 8bit Message-Id: <20010522094528.DA45C37B43C@hub.freebsd.org> Sender: owner-freebsd-ppc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hey there, I found a great retail site with all kinds of products. Home decor, office decor, travel, outdoors, kitchen, etc... Take a look around at http://www.merchandisewholesale.com just click on the images of the product to enlarge it for a better view. Sincerely, John To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ppc" in the body of the message From owner-freebsd-ppc Tue May 22 8:16:39 2001 Delivered-To: freebsd-ppc@freebsd.org Received: from anchor-post-33.mail.demon.net (anchor-post-33.mail.demon.net [194.217.242.91]) by hub.freebsd.org (Postfix) with ESMTP id A9CC837B42C; Tue, 22 May 2001 08:16:32 -0700 (PDT) (envelope-from dfr@nlsystems.com) Received: from [62.49.251.130] (helo=herring.nlsystems.com) by anchor-post-33.mail.demon.net with esmtp (Exim 2.12 #1) id 152Dtc-0000Aq-0X; Tue, 22 May 2001 16:16:28 +0100 Received: from herring (herring [10.0.0.2]) by herring.nlsystems.com (8.11.2/8.11.2) with ESMTP id f4MFFC746207; Tue, 22 May 2001 16:15:12 +0100 (BST) (envelope-from dfr@nlsystems.com) Date: Tue, 22 May 2001 16:15:12 +0100 (BST) From: Doug Rabson To: Cc: Subject: Re: FreeBSD/powerpc work to date In-Reply-To: <20010521234812.B56326@rafe.jeamland.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-ppc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 21 May 2001, Benno Rice wrote: > Please feel free to review, comment, etc. > > The snapshot is in the form of a diff against -CURRENT and a tar.gz file > containing new files that would need to be committed. Both of these > files are rooted in src/sys. Nice! Reading through the changes, I have a couple of comments. In mp_machdep.c, you should remove the 'include ' - that is only ever likely to exist on alpha. You can alsp delete ipl.h since that has been removed for the other arches. In swtch.s, you are correct in thinking that Idle is unneeded. A generic assembler question - why the use of _C_LABEL(xx)? Surely since we are only ever going to be using ELF here, we can assume the format of C names? Its difficult to see what is happening since I'm not familiar with powerpc assembler but it appears that you are saving the process state on the stack (using a 'struct switchframe'). The other architectures save this information in the PCB - I'm not sure which is the best place. I notice that pmap.c contains a mix of programming styles with some of the code using ANSI and some K&R. The trend seems to be to move to ANSI for all new code so its probably worth converting the rest of the file. How far does the beast get when booting? -- Doug Rabson Mail: dfr@nlsystems.com Phone: +44 20 8348 6160 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ppc" in the body of the message From owner-freebsd-ppc Tue May 22 12:59:54 2001 Delivered-To: freebsd-ppc@freebsd.org Received: from beta.memotec.com (beta.memotec.com [205.151.88.4]) by hub.freebsd.org (Postfix) with ESMTP id C538237B422 for ; Tue, 22 May 2001 12:59:50 -0700 (PDT) (envelope-from dorvalf@memotec.com) Received: from dorvalf ([204.19.88.8]) by beta.memotec.com (8.9.3/8.9.3) with SMTP id PAA23149 for ; Tue, 22 May 2001 15:59:47 -0400 (EDT) Message-ID: <002801c0e2f9$a3e1eb40$085813cc@memotec.com> From: "Francois Dorval" To: Subject: Please add me to your BSDPPC mailling list. Date: Tue, 22 May 2001 15:58:57 -0400 Organization: Memotec Communications MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0025_01C0E2D8.1BFF3FA0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Sender: owner-freebsd-ppc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. ------=_NextPart_000_0025_01C0E2D8.1BFF3FA0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Francois Dorval B.Eng,P.Eng. System Group Manager Memotec Communications Inc. 600, rue McCaffrey Montreal (Quebec) Canada H4T 1N1 Tel: (514) 738-4781 #430 Fax: (514) 738-4436 Email: dorvalf@memotec.com ------=_NextPart_000_0025_01C0E2D8.1BFF3FA0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
 
Francois Dorval B.Eng,P.Eng.
System Group=20 Manager
Memotec Communications Inc.
600, rue McCaffrey
Montreal = (Quebec)
Canada H4T 1N1
Tel: (514) 738-4781 #430
Fax: (514)=20 738-4436
Email: dorvalf@memotec.com
<= /BODY> ------=_NextPart_000_0025_01C0E2D8.1BFF3FA0-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ppc" in the body of the message From owner-freebsd-ppc Tue May 22 17:16:48 2001 Delivered-To: freebsd-ppc@freebsd.org Received: from mail.jeamland.net (rafe.jeamland.net [203.18.243.114]) by hub.freebsd.org (Postfix) with ESMTP id CAB4737B424 for ; Tue, 22 May 2001 17:16:44 -0700 (PDT) (envelope-from benno@FreeBSD.org) Received: by mail.jeamland.net (Postfix, from userid 1000) id BF6F470607; Wed, 23 May 2001 10:16:43 +1000 (EST) Date: Wed, 23 May 2001 10:16:43 +1000 From: Benno Rice To: Doug Rabson Cc: freebsd-ppc@freebsd.org Subject: Re: FreeBSD/powerpc work to date Message-ID: <20010523101643.A70899@rafe.jeamland.net> References: <20010521234812.B56326@rafe.jeamland.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="GvXjxJ+pjyke8COw" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from dfr@nlsystems.com on Tue, May 22, 2001 at 04:15:12PM +0100 Sender: owner-freebsd-ppc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --GvXjxJ+pjyke8COw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 22, 2001 at 04:15:12PM +0100, Doug Rabson wrote: > On Mon, 21 May 2001, Benno Rice wrote: >=20 > > Please feel free to review, comment, etc. > > > > The snapshot is in the form of a diff against -CURRENT and a tar.gz file > > containing new files that would need to be committed. Both of these > > files are rooted in src/sys. >=20 > Nice! Reading through the changes, I have a couple of comments. In > mp_machdep.c, you should remove the 'include ' - that is > only ever likely to exist on alpha. You can alsp delete ipl.h since that > has been removed for the other arches. Ah. I started with the code from NetBSD and pulled bits from around the tr= ee to fill gaps, so there's some weirdness in there. =3D) =20 > In swtch.s, you are correct in thinking that Idle is unneeded. A generic > assembler question - why the use of _C_LABEL(xx)? Surely since we are only > ever going to be using ELF here, we can assume the format of C names? Its > difficult to see what is happening since I'm not familiar with powerpc > assembler but it appears that you are saving the process state on the > stack (using a 'struct switchframe'). The other architectures save this > information in the PCB - I'm not sure which is the best place. This is probably NetBSD code. Since I haven't got that far yet, it's pretty much unchanged except that I separated their locore.s into smaller files as per the other FreeBSD ports. =20 > I notice that pmap.c contains a mix of programming styles with some of the > code using ANSI and some K&R. The trend seems to be to move to ANSI for > all new code so its probably worth converting the rest of the file. Yeah. I'll be doing that. =20 > How far does the beast get when booting? There's still an issue somewhere in the pmap code in that as soon as I flush the TLB it starts having problems. If I leave the TLB alone though it mana= ges to crawl it's way to vm_mem_init and vm_page_startup before falling over. --=20 Benno Rice benno@FreeBSD.org --GvXjxJ+pjyke8COw Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjsLAWoACgkQbQx7xhW+Eg5lJQCfUH2vge6LryvYkS9yn2kBiBx8 M7EAoMheaLYHCj8nYXJRoh2+NBQZj1/s =hLgh -----END PGP SIGNATURE----- --GvXjxJ+pjyke8COw-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ppc" in the body of the message From owner-freebsd-ppc Tue May 22 19: 8:49 2001 Delivered-To: freebsd-ppc@freebsd.org Received: from igw3.watson.ibm.com (igw3.watson.ibm.com [198.81.209.18]) by hub.freebsd.org (Postfix) with ESMTP id 80CF137B42C; Tue, 22 May 2001 19:08:47 -0700 (PDT) (envelope-from dje@watson.ibm.com) Received: from sp1n189at0.watson.ibm.com (sp1n189at0.watson.ibm.com [9.2.104.62]) by igw3.watson.ibm.com (8.11.2/8.11.2) with ESMTP id f4N28jR13122; Tue, 22 May 2001 22:08:45 -0400 Received: from makai.watson.ibm.com (makai.watson.ibm.com [9.2.216.144]) by sp1n189at0.watson.ibm.com (8.9.3/Feb-20-98) with ESMTP id WAA11320; Tue, 22 May 2001 22:08:45 -0400 Received: from watson.ibm.com (localhost [127.0.0.1]) by makai.watson.ibm.com (AIX4.3/8.9.3/8.9.3/01-10-2000) with ESMTP id WAA26946; Tue, 22 May 2001 22:08:44 -0400 Message-Id: <200105230208.WAA26946@makai.watson.ibm.com> To: Benno Rice Cc: Doug Rabson , freebsd-ppc@FreeBSD.ORG Subject: Re: FreeBSD/powerpc work to date In-Reply-To: Message from Benno Rice of "Wed, 23 May 2001 10:16:43 +1000." <20010523101643.A70899@rafe.jeamland.net> Date: Tue, 22 May 2001 22:08:44 -0400 From: David Edelsohn Sender: owner-freebsd-ppc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG >>>>> Benno Rice writes: Benno> There's still an issue somewhere in the pmap code in that as soon as I flush Benno> the TLB it starts having problems. If I leave the TLB alone though it mana= Benno> ges Benno> to crawl it's way to vm_mem_init and vm_page_startup before falling over. Is the kernel running real or virtual at that point? It sounds like you are running virtual and blowing away the TLB before the page table structures are in place to allow the kernel to handle a page fault. Are you mapping the kernel with a large BAT? David To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ppc" in the body of the message From owner-freebsd-ppc Tue May 22 19:57:35 2001 Delivered-To: freebsd-ppc@freebsd.org Received: from mail.jeamland.net (rafe.jeamland.net [203.18.243.114]) by hub.freebsd.org (Postfix) with ESMTP id 6533D37B422 for ; Tue, 22 May 2001 19:57:32 -0700 (PDT) (envelope-from benno@FreeBSD.org) Received: by mail.jeamland.net (Postfix, from userid 1000) id 4437670607; Wed, 23 May 2001 12:57:31 +1000 (EST) Date: Wed, 23 May 2001 12:57:30 +1000 From: Benno Rice To: David Edelsohn Cc: Doug Rabson , freebsd-ppc@FreeBSD.ORG Subject: Re: FreeBSD/powerpc work to date Message-ID: <20010523125730.D70899@rafe.jeamland.net> References: <200105230208.WAA26946@makai.watson.ibm.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="TybLhxa8M7aNoW+V" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200105230208.WAA26946@makai.watson.ibm.com>; from dje@watson.ibm.com on Tue, May 22, 2001 at 10:08:44PM -0400 Sender: owner-freebsd-ppc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --TybLhxa8M7aNoW+V Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 22, 2001 at 10:08:44PM -0400, David Edelsohn wrote: > >>>>> Benno Rice writes: >=20 > Benno> There's still an issue somewhere in the pmap code in that as soon = as > Benno> I flush the TLB it starts having problems. If I leave the TLB alo= ne > Benno> though it manages to crawl it's way to vm_mem_init and > Benno> vm_page_startup before falling over. >=20 > Is the kernel running real or virtual at that point? It sounds > like you are running virtual and blowing away the TLB before the page > table structures are in place to allow the kernel to handle a page fault. > Are you mapping the kernel with a large BAT? It's running virtual. I've got DBAT and IBAT mappings for the kernel, and DBAT mappings for various bits of IO space. I've duplicated the OpenFirmwa= re mappings into my new page table. My current theories are either that there are errors in my PTE insertion code or that something's really messed up wi= th my stack. --=20 Benno Rice benno@FreeBSD.org --TybLhxa8M7aNoW+V Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjsLJxoACgkQbQx7xhW+Eg7HoQCgxvMatMOM2450LEI2Re2sbC1I BGsAnjXk2Coi1Q+lBAGEQegKJ0tu2sbf =xHcs -----END PGP SIGNATURE----- --TybLhxa8M7aNoW+V-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ppc" in the body of the message From owner-freebsd-ppc Thu May 24 17:53:47 2001 Delivered-To: freebsd-ppc@freebsd.org Received: from relay.nuxi.com (nuxi.cs.ucdavis.edu [169.237.7.38]) by hub.freebsd.org (Postfix) with ESMTP id EAE3037B422; Thu, 24 May 2001 17:53:44 -0700 (PDT) (envelope-from obrien@nuxi.ucdavis.edu) Received: from dragon.nuxi.com (root@[206.40.252.115]) by relay.nuxi.com (8.11.2/8.11.2) with ESMTP id f4P0rhl24916; Thu, 24 May 2001 17:53:43 -0700 (PDT) (envelope-from obrien@NUXI.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.11.3/8.11.1) id f4P0rhW13957; Thu, 24 May 2001 17:53:43 -0700 (PDT) (envelope-from obrien) Date: Thu, 24 May 2001 17:53:39 -0700 From: "David O'Brien" To: Benno Rice Cc: Doug Rabson , freebsd-ppc@FreeBSD.org Subject: Re: FreeBSD/powerpc work to date Message-ID: <20010524175339.A13912@dragon.nuxi.com> Reply-To: obrien@FreeBSD.org References: <20010521234812.B56326@rafe.jeamland.net> <20010523101643.A70899@rafe.jeamland.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010523101643.A70899@rafe.jeamland.net>; from benno@FreeBSD.org on Wed, May 23, 2001 at 10:16:43AM +1000 X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 Sender: owner-freebsd-ppc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, May 23, 2001 at 10:16:43AM +1000, Benno Rice wrote: > > Nice! Reading through the changes, I have a couple of comments. In > > mp_machdep.c, you should remove the 'include ' - that is > > only ever likely to exist on alpha. You can alsp delete ipl.h since that > > has been removed for the other arches. > > Ah. I started with the code from NetBSD and pulled bits from around the tree > to fill gaps, so there's some weirdness in there. =) I would rather not see things with NetBSD weirdness we do not understand committed. Otherwise these bits will last forever and we'll have a platform who's code smells different from the other smelling two we already have. I cannot tell from your reply if you are going to act on DFR's issue. You only explained the why, not what you plan to do about it. > > In swtch.s, you are correct in thinking that Idle is unneeded. A generic > > assembler question - why the use of _C_LABEL(xx)? Surely since we are only > > ever going to be using ELF here, we can assume the format of C names? Its > > difficult to see what is happening since I'm not familiar with powerpc > > assembler but it appears that you are saving the process state on the > > stack (using a 'struct switchframe'). The other architectures save this > > information in the PCB - I'm not sure which is the best place. > > This is probably NetBSD code. Since I haven't got that far yet, it's pretty > much unchanged except that I separated their locore.s into smaller files as > per the other FreeBSD ports. See my concerns above. I especially feel this way about strange macros. Those of us reading both Alpha and x86 headers often have to scratch our heads what these NetBSD macros do, etc.. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ppc" in the body of the message From owner-freebsd-ppc Fri May 25 23:22:14 2001 Delivered-To: freebsd-ppc@freebsd.org Received: from mail.jeamland.net (rafe.jeamland.net [203.18.243.114]) by hub.freebsd.org (Postfix) with ESMTP id 5294537B423; Fri, 25 May 2001 23:22:09 -0700 (PDT) (envelope-from benno@FreeBSD.org) Received: by mail.jeamland.net (Postfix, from userid 1000) id 39D7C70607; Fri, 25 May 2001 11:13:58 +1000 (EST) Date: Fri, 25 May 2001 11:13:58 +1000 From: Benno Rice To: David O'Brien Cc: Doug Rabson , freebsd-ppc@FreeBSD.org Subject: Re: FreeBSD/powerpc work to date Message-ID: <20010525111357.B90363@rafe.jeamland.net> References: <20010521234812.B56326@rafe.jeamland.net> <20010523101643.A70899@rafe.jeamland.net> <20010524175339.A13912@dragon.nuxi.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="mojUlQ0s9EVzWg2t" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010524175339.A13912@dragon.nuxi.com>; from obrien@FreeBSD.org on Thu, May 24, 2001 at 05:53:39PM -0700 Sender: owner-freebsd-ppc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --mojUlQ0s9EVzWg2t Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 24, 2001 at 05:53:39PM -0700, David O'Brien wrote: > On Wed, May 23, 2001 at 10:16:43AM +1000, Benno Rice wrote: > > > Nice! Reading through the changes, I have a couple of comments. In > > > mp_machdep.c, you should remove the 'include ' - that = is > > > only ever likely to exist on alpha. You can alsp delete ipl.h since t= hat > > > has been removed for the other arches. > >=20 > > Ah. I started with the code from NetBSD and pulled bits from around the > > tree to fill gaps, so there's some weirdness in there. =3D) >=20 > I would rather not see things with NetBSD weirdness we do not understand > committed. Otherwise these bits will last forever and we'll have a > platform who's code smells different from the other smelling two we > already have. There's already some NetBSDisms in alpha, since (IIRC) it took pretty much the same path. I left the NetBSD stuff there in case I need to refer to it while writing/changing the code to support FreeBSD. > I cannot tell from your reply if you are going to act on DFR's issue. > You only explained the why, not what you plan to do about it. I plan to leave it there until the code is obsolete basically. Once I have a piece of code that works, I'll delete the NetBSD code (unless of course that code's used =3D)). > > > In swtch.s, you are correct in thinking that Idle is unneeded. A gene= ric > > > assembler question - why the use of _C_LABEL(xx)? Surely since we are= only > > > ever going to be using ELF here, we can assume the format of C names?= Its > > > difficult to see what is happening since I'm not familiar with powerpc > > > assembler but it appears that you are saving the process state on the > > > stack (using a 'struct switchframe'). The other architectures save th= is > > > information in the PCB - I'm not sure which is the best place. > >=20 > > This is probably NetBSD code. Since I haven't got that far yet, it's p= retty > > much unchanged except that I separated their locore.s into smaller file= s as > > per the other FreeBSD ports. >=20 > See my concerns above. I especially feel this way about strange > macros. Those of us reading both Alpha and x86 headers often have to > scratch our heads what these NetBSD macros do, etc.. I agree, I'm just trying to get it working as the time I can spend on this = is limited. My plan is to get it to a point, probably single-user, then start a big clean up to cut out unused and/or unneeded code and make sure the code's all adhering to style(9) and has comments and suchlike. --=20 Benno Rice benno@FreeBSD.org --mojUlQ0s9EVzWg2t Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjsNsdUACgkQbQx7xhW+Eg4qQQCg0YZlncpmLLYmsO0WTY15i+yZ lrUAoIFwkk/ycJNlty+x23rVlol6PoHQ =12x5 -----END PGP SIGNATURE----- --mojUlQ0s9EVzWg2t-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ppc" in the body of the message