From owner-freebsd-ppc Sun Jan 20 21:58:18 2002 Delivered-To: freebsd-ppc@freebsd.org Received: from www.navigo.com (adsl-65-64-235-229.dsl.hstntx.swbell.net [65.64.235.229]) by hub.freebsd.org (Postfix) with ESMTP id 8C0F837B416 for ; Sun, 20 Jan 2002 21:57:46 -0800 (PST) Received: from cgomesxxx (www.navigo.com [65.64.235.229]) by www.navigo.com (8.11.2/8.11.2) with SMTP id g0L78H916932 for ; Mon, 21 Jan 2002 01:08:18 -0600 Message-ID: <002201c1a240$edb14930$0100a8c0@cgomesxxx> From: "Carlos Macedo Gomes" To: Subject: subscribe Date: Mon, 21 Jan 2002 01:00:26 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 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 -- gomes@navigo.com Carlos Macedo Gomes _sic itur ad astra_ 1/1; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ppc" in the body of the message From owner-freebsd-ppc Thu Jan 24 11: 5:19 2002 Delivered-To: freebsd-ppc@freebsd.org Received: from protactinium.btinternet.com (protactinium.btinternet.com [194.73.73.176]) by hub.freebsd.org (Postfix) with ESMTP id C0EAD37B417; Thu, 24 Jan 2002 11:05:00 -0800 (PST) Received: from host213-122-62-182.btinternet.com ([213.122.62.182] helo=rodson.com) by rhenium with smtp (Exim 3.22 #8) id 16Toip-00009c-00; Thu, 24 Jan 2002 18:35:40 +0000 From: "Rodson Universal" To: Subject: Port and Stevedoring Equipment For Sale and Wanted Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Date: Thu, 24 Jan 2002 20:35:18 +0200 Content-Transfer-Encoding: 8bit Message-Id: 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 Attn : Stevedoring , crane and engineering dept. We buy and sell crawler and telescopic cranes 50-1000 tons Stevedoring equipment Port cranes equipment ,Shipyard equipment Container cranes and equipment Floating grab cranes , heavy lift cranes , dry docks and barges PLEASE CHECK OUR WEBSITE www.rodson.com We are always looking to buy port cranes and ship unloading systems , bagging plants , pneumatic grain unloaders , dry cargo unloaders , screw type unloaders , dry cargo unloading systems , dry powdered cement unloaders , rail mounted and rubber tyred ship-to-shore cranes , container cranes , grab cranes , coal discharging systems , Port pedastal whirley cranes ,container-handling forklifts and reachstackers , terminal tractors and trailers, electro-hydrauylic grabs 10-14 cu meter Please keep us informed of any equipment you have for sale and let us know your port equipment and stevedoring requirements thanks and regards connie sullivan Please reply to: sales@rodson.com RODSON UNIVERSAL INC www.rodson.com Tel +44 1444 412728 Fax +44 1444 415929 If you feel that you have received this e-mail in error or wish to unsubscribe to future mailings, please reply to this e-mail with "remove" in the subject header. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ppc" in the body of the message From owner-freebsd-ppc Fri Jan 25 10:59:46 2002 Delivered-To: freebsd-ppc@freebsd.org Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (Postfix) with ESMTP id E41C637B402 for ; Fri, 25 Jan 2002 10:59:41 -0800 (PST) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.3/8.9.3) with ESMTP id NAA01652 for ; Fri, 25 Jan 2002 13:59:41 -0500 (EST) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.11.6/8.9.1) id g0PIxBV78658; Fri, 25 Jan 2002 13:59:11 -0500 (EST) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15441.43775.191953.219307@grasshopper.cs.duke.edu> Date: Fri, 25 Jan 2002 13:59:11 -0500 (EST) To: freebsd-ppc@freebsd.org Subject: compiler problems? X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid 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'm getting interested in powerpc, so I was trying to follow Mark's instructions (from Oct 18th) to build a ppc kernel. I ran into the following problems: - compile error: ../../../kern/kern_fork.c: In function `fork_exit': ../../../kern/kern_fork.c:771: invalid lvalue in assignment % cat -n kern_fork.c: <..> 769 sched_lock.mtx_recurse = 0; 770 td->td_critnest = 1; 771 td->td_savecrit = CRITICAL_FORK; <..> td->td_savecrit is a register_t, which works out to be an int. How is that an invalid lvalue? Is this a problem with the cross compiler? Is Mark's cross compiler port out of date? I was feeling lucky, so I commented out that line and linked a kernel When doing so, I got the second problem: - multiply defined symbols for ddb_regs & bootverbose. Trivial to fix, patch appended. I'd have committed it, but I don't want to cause any mergework for people who might be working on something.. The resulting kernel traps in cpu_switch. It looks like its deref'ing a null pointer at line 97.. I guess this is as far as we are? Cheers, Drew Index: include/db_machdep.h =================================================================== RCS file: /home/ncvs/src/sys/powerpc/include/db_machdep.h,v retrieving revision 1.1 diff -u -r1.1 db_machdep.h --- include/db_machdep.h 10 Jun 2001 02:39:28 -0000 1.1 +++ include/db_machdep.h 25 Jan 2002 18:08:30 -0000 @@ -47,7 +47,7 @@ u_int32_t msr; }; typedef struct powerpc_saved_state db_regs_t; -db_regs_t ddb_regs; /* register state */ +extern db_regs_t ddb_regs; /* register state */ #define DDB_REGS (&ddb_regs) #define PC_REGS(regs) ((db_addr_t)(regs)->iar) Index: powerpc/machdep.c =================================================================== RCS file: /home/ncvs/src/sys/powerpc/powerpc/machdep.c,v retrieving revision 1.17 diff -u -r1.17 machdep.c --- powerpc/machdep.c 11 Dec 2001 23:33:43 -0000 1.17 +++ powerpc/machdep.c 25 Jan 2002 18:10:11 -0000 @@ -158,7 +158,7 @@ struct msgbuf *msgbufp = 0; -int bootverbose = 0, Maxmem = 0; +int Maxmem = 0; long dumplo; vm_offset_t phys_avail[10]; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ppc" in the body of the message From owner-freebsd-ppc Fri Jan 25 11: 2:16 2002 Delivered-To: freebsd-ppc@freebsd.org Received: from sherline.net (sherline.net [216.203.226.2]) by hub.freebsd.org (Postfix) with SMTP id DEE2937B47B for ; Fri, 25 Jan 2002 11:01:33 -0800 (PST) Received: (qmail 19308 invoked from network); 25 Jan 2002 19:01:31 -0000 Received: from server.sherline.net (HELO server) (216.203.226.3) by sherline.net with SMTP; 25 Jan 2002 19:01:31 -0000 Message-ID: <001401c1a5d2$d96bcb40$03e2cbd8@server> From: "Server Admin" To: "Andrew Gallatin" , References: <15441.43775.191953.219307@grasshopper.cs.duke.edu> Subject: Re: compiler problems? Date: Fri, 25 Jan 2002 11:02:35 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 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 Is CRITICAL_FORK defined in the scope of that function ? I'm not familiar with the code, but I figured that might be a possibility. ___________________________________________ Jeremiah Gowdy IT Manager - Senior Network Administrator Sherline Products Inc 3235 Executive Ridge Vista CA 92083-8527 IT Dept: 760-727-9492 Sales: 1-800-541-0735 International: (760) 727-5857 Fax: (760) 727-7857 ___________________________________________ ----- Original Message ----- From: "Andrew Gallatin" To: Sent: Friday, January 25, 2002 10:59 AM Subject: compiler problems? > > I'm getting interested in powerpc, so I was trying to follow Mark's > instructions (from Oct 18th) to build a ppc kernel. I ran into the > following problems: > > - compile error: > > ../../../kern/kern_fork.c: In function `fork_exit': > ../../../kern/kern_fork.c:771: invalid lvalue in assignment > > % cat -n kern_fork.c: > <..> > 769 sched_lock.mtx_recurse = 0; > 770 td->td_critnest = 1; > 771 td->td_savecrit = CRITICAL_FORK; > <..> > > td->td_savecrit is a register_t, which works out to be an int. > How is that an invalid lvalue? Is this a problem with the cross > compiler? Is Mark's cross compiler port out of date? > > I was feeling lucky, so I commented out that line and linked a kernel > When doing so, I got the second problem: > > - multiply defined symbols for ddb_regs & bootverbose. Trivial to > fix, patch appended. I'd have committed it, but I don't want to cause > any mergework for people who might be working on something.. > > The resulting kernel traps in cpu_switch. It looks like its deref'ing > a null pointer at line 97.. I guess this is as far as we are? > > Cheers, > > Drew > > Index: include/db_machdep.h > =================================================================== > RCS file: /home/ncvs/src/sys/powerpc/include/db_machdep.h,v > retrieving revision 1.1 > diff -u -r1.1 db_machdep.h > --- include/db_machdep.h 10 Jun 2001 02:39:28 -0000 1.1 > +++ include/db_machdep.h 25 Jan 2002 18:08:30 -0000 > @@ -47,7 +47,7 @@ > u_int32_t msr; > }; > typedef struct powerpc_saved_state db_regs_t; > -db_regs_t ddb_regs; /* register state */ > +extern db_regs_t ddb_regs; /* register state */ > #define DDB_REGS (&ddb_regs) > > #define PC_REGS(regs) ((db_addr_t)(regs)->iar) > Index: powerpc/machdep.c > =================================================================== > RCS file: /home/ncvs/src/sys/powerpc/powerpc/machdep.c,v > retrieving revision 1.17 > diff -u -r1.17 machdep.c > --- powerpc/machdep.c 11 Dec 2001 23:33:43 -0000 1.17 > +++ powerpc/machdep.c 25 Jan 2002 18:10:11 -0000 > @@ -158,7 +158,7 @@ > > struct msgbuf *msgbufp = 0; > > -int bootverbose = 0, Maxmem = 0; > +int Maxmem = 0; > long dumplo; > > vm_offset_t phys_avail[10]; > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-ppc" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ppc" in the body of the message From owner-freebsd-ppc Fri Jan 25 11: 8:22 2002 Delivered-To: freebsd-ppc@freebsd.org Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (Postfix) with ESMTP id C1B0537B402 for ; Fri, 25 Jan 2002 11:08:18 -0800 (PST) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.3/8.9.3) with ESMTP id OAA01929; Fri, 25 Jan 2002 14:08:18 -0500 (EST) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.11.6/8.9.1) id g0PJ7mh78675; Fri, 25 Jan 2002 14:07:48 -0500 (EST) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15441.44292.152925.217766@grasshopper.cs.duke.edu> Date: Fri, 25 Jan 2002 14:07:48 -0500 (EST) To: "Server Admin" Cc: Subject: Re: compiler problems? In-Reply-To: <001401c1a5d2$d96bcb40$03e2cbd8@server> References: <15441.43775.191953.219307@grasshopper.cs.duke.edu> <001401c1a5d2$d96bcb40$03e2cbd8@server> X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid 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 Server Admin writes: > Is CRITICAL_FORK defined in the scope of that function ? I'm not familiar > with the code, but I figured that might be a possibility. > Ah.. Duh! Thanks for making me hunt down the define of CRITICAL_FORK. I was assuming it was constant & gcc was complaining about assigning into td->td_savecrit. But CRITICAL_FORK is defined like this: cpufunc.h:#define CRITICAL_FORK (mfmsr() |= PSL_EE) And gcc is correctly complaining about |='ing a function return. Now I need to learn something about ppc so I know what the heck mfmsr is ;) Drew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ppc" in the body of the message From owner-freebsd-ppc Fri Jan 25 11:21:33 2002 Delivered-To: freebsd-ppc@freebsd.org Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (Postfix) with ESMTP id 66E5437B400 for ; Fri, 25 Jan 2002 11:21:30 -0800 (PST) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.3/8.9.3) with ESMTP id OAA02416; Fri, 25 Jan 2002 14:21:30 -0500 (EST) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.11.6/8.9.1) id g0PJL0278709; Fri, 25 Jan 2002 14:21:00 -0500 (EST) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15441.45083.955838.925014@grasshopper.cs.duke.edu> Date: Fri, 25 Jan 2002 14:20:59 -0500 (EST) To: "Server Admin" Cc: Subject: Re: compiler problems? In-Reply-To: <001401c1a5d2$d96bcb40$03e2cbd8@server> References: <15441.43775.191953.219307@grasshopper.cs.duke.edu> <001401c1a5d2$d96bcb40$03e2cbd8@server> X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid 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 It looks like it was a simple typo & should have been this: Index: cpufunc.h =================================================================== RCS file: /home/ncvs/src/sys/powerpc/include/cpufunc.h,v retrieving revision 1.6 diff -u -r1.6 cpufunc.h --- cpufunc.h 18 Dec 2001 00:27:17 -0000 1.6 +++ cpufunc.h 25 Jan 2002 19:13:34 -0000 @@ -35,7 +35,7 @@ #include -#define CRITICAL_FORK (mfmsr() |= PSL_EE) +#define CRITICAL_FORK (mfmsr() | PSL_EE) #ifdef __GNUC__ Whee.. Fixing the typo gets me as far as failing to mount root! Drew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ppc" in the body of the message From owner-freebsd-ppc Sat Jan 26 15: 7:46 2002 Delivered-To: freebsd-ppc@freebsd.org Received: from rwcrmhc52.attbi.com (rwcrmhc52.attbi.com [216.148.227.88]) by hub.freebsd.org (Postfix) with ESMTP id D8AFE37B417 for ; Sat, 26 Jan 2002 15:07:44 -0800 (PST) Received: from [12.230.23.63] by rwcrmhc52.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020126230744.GTMP3578.rwcrmhc52.attbi.com@[12.230.23.63]> for ; Sat, 26 Jan 2002 23:07:44 +0000 User-Agent: Microsoft-Entourage/10.0.0.1309 Date: Sat, 26 Jan 2002 15:07:43 -0800 Subject: subscribe From: Benjamin Winter To: Message-ID: Mime-version: 1.0 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