From owner-freebsd-mips@FreeBSD.ORG Wed Apr 17 18:19:51 2013 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id ABA4072A; Wed, 17 Apr 2013 18:19:51 +0000 (UTC) (envelope-from aduane@juniper.net) Received: from exprod7og105.obsmtp.com (exprod7og105.obsmtp.com [64.18.2.163]) by mx1.freebsd.org (Postfix) with ESMTP id 5BE7DCE8; Wed, 17 Apr 2013 18:19:51 +0000 (UTC) Received: from P-EMHUB03-HQ.jnpr.net ([66.129.224.36]) (using TLSv1) by exprod7ob105.postini.com ([64.18.6.12]) with SMTP ID DSNKUW7nwS74JqEhG9vX5RaaZshX2EkPUPn2@postini.com; Wed, 17 Apr 2013 11:19:51 PDT Received: from P-CLDFE01-HQ.jnpr.net (172.24.192.59) by P-EMHUB03-HQ.jnpr.net (172.24.192.37) with Microsoft SMTP Server (TLS) id 8.3.213.0; Wed, 17 Apr 2013 11:13:53 -0700 Received: from o365mail.juniper.net (207.17.137.224) by o365mail.juniper.net (172.24.192.59) with Microsoft SMTP Server id 14.1.355.2; Wed, 17 Apr 2013 11:13:52 -0700 Received: from co1outboundpool.messaging.microsoft.com (216.32.180.188) by o365mail.juniper.net (207.17.137.224) with Microsoft SMTP Server (TLS) id 14.1.355.2; Wed, 17 Apr 2013 11:23:44 -0700 Received: from mail38-co1-R.bigfish.com (10.243.78.254) by CO1EHSOBE038.bigfish.com (10.243.66.103) with Microsoft SMTP Server id 14.1.225.23; Wed, 17 Apr 2013 18:13:51 +0000 Received: from mail38-co1 (localhost [127.0.0.1]) by mail38-co1-R.bigfish.com (Postfix) with ESMTP id D13ADA00166; Wed, 17 Apr 2013 18:13:51 +0000 (UTC) X-Forefront-Antispam-Report: CIP:157.56.244.213; KIP:(null); UIP:(null); (null); H:CH1PRD0510HT004.namprd05.prod.outlook.com; R:internal; EFV:INT X-SpamScore: -3 X-BigFish: PS-3(zz98dI9371I542Izz1f42h1fc6h1ee6h1de0h1fdah1202h1e76h1d1ah1d2ahzz17326ah8275dh8275chz2dh2a8h668h839h947hd25hf0ah1288h12a5h12a9h12bdh137ah13b6h1441h1504h1537h153bh15d0h162dh1631h1758h18e1h1946h19b5h19ceh1ad9h1b0ah1155h) Received: from mail38-co1 (localhost.localdomain [127.0.0.1]) by mail38-co1 (MessageSwitch) id 1366222430682741_12816; Wed, 17 Apr 2013 18:13:50 +0000 (UTC) Received: from CO1EHSMHS032.bigfish.com (unknown [10.243.78.234]) by mail38-co1.bigfish.com (Postfix) with ESMTP id 9AE4F48001D; Wed, 17 Apr 2013 18:13:50 +0000 (UTC) Received: from CH1PRD0510HT004.namprd05.prod.outlook.com (157.56.244.213) by CO1EHSMHS032.bigfish.com (10.243.66.42) with Microsoft SMTP Server (TLS) id 14.1.225.23; Wed, 17 Apr 2013 18:13:50 +0000 Received: from CH1PRD0510MB392.namprd05.prod.outlook.com ([169.254.6.100]) by CH1PRD0510HT004.namprd05.prod.outlook.com ([10.255.150.39]) with mapi id 14.16.0293.003; Wed, 17 Apr 2013 18:13:49 +0000 From: Andrew Duane To: Adrian Chadd , "freebsd-mips@freebsd.org" Subject: RE: -HEAD on gxemul/MALTA is broken Thread-Topic: -HEAD on gxemul/MALTA is broken Thread-Index: AQHOO5P8eqVxZuF7REGD8tzqnI6tspjatImAgAACnAA= Date: Wed, 17 Apr 2013 18:13:48 +0000 Message-ID: <477C1270D3E5484DA2303CEBE274C9E1250ED2D7@CH1PRD0510MB392.namprd05.prod.outlook.com> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [66.129.232.2] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-FOPE-CONNECTOR: Id%0$Dn%*$RO%0$TLS%0$FQDN%$TlsDn% X-FOPE-CONNECTOR: Id%12219$Dn%FREEBSD.ORG$RO%2$TLS%5$FQDN%onpremiseedge-1018244.customer.frontbridge.com$TlsDn%o365mail.juniper.net X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Apr 2013 18:19:51 -0000 I tripped across this doing some early Octeon work. IIRC, it has to do with= the static kenv (kern_envp) not being initialized properly. I had to work = around it somehow, but I'm afraid I forgot how :( =A0.................................... Andrew L. Duane Resident Architect - AT&T Technical Lead m=A0=A0=A0+1 603.770.7088 o +1 408.933.6944 (2-6944) skype: andrewlduane aduane@juniper.net -----Original Message----- From: owner-freebsd-mips@freebsd.org [mailto:owner-freebsd-mips@freebsd.org= ] On Behalf Of Adrian Chadd Sent: Wednesday, April 17, 2013 2:03 PM To: freebsd-mips@freebsd.org Subject: Re: -HEAD on gxemul/MALTA is broken On 17 April 2013 10:49, Adrian Chadd wrote: > gcc version 4.2.1 20070831 patched [FreeBSD] [ warning: LOW reference:=20 > vaddr=3D0x00000000, exception TLBL, > pc=3D0x8020f024 ] Trap cause =3D 2 (TLB miss=20 > (load or instr. fetch) - kernel mode) [ thread pid 0 tid 0 ] > Stopped at 0x8020f024: lb v0,0(s2) > db> (kgdb) list *0x8020f024 0x8020f024 is in init_dynamic_kenv (/usr/home/adrian/work/freebsd/svn/src/sys/kern/kern_environment.c:234). 229 int i; 230 231 kenvp =3D malloc((KENV_SIZE + 1) * sizeof(char *), M_KENV, 232 M_WAITOK | M_ZERO); 233 i =3D 0; 234 if (*kern_envp !=3D '\0') { 235 for (cp =3D kern_envp; cp !=3D NULL; cp =3D kernenv_next(cp)) { 236 len =3D strlen(cp) + 1; 237 if (len > KENV_MNAMELEN + 1 + KENV_MVALLEN + 1) { 238 printf( _______________________________________________ freebsd-mips@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-mips To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org"