From owner-freebsd-mips@FreeBSD.ORG Mon Jun 28 10:14:13 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 25B491065673 for ; Mon, 28 Jun 2010 10:14:13 +0000 (UTC) (envelope-from c.jayachandran@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id CEFD28FC15 for ; Mon, 28 Jun 2010 10:14:12 +0000 (UTC) Received: by vws13 with SMTP id 13so7374929vws.13 for ; Mon, 28 Jun 2010 03:14:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=GLB+RgutJH4UR4KOoe6DT9GmMWGvIu1pFHXmujXi0pA=; b=aM6R4cW0FoNf8DYDtPYbRQpMpMTL9dVWXoSzwmbuhjNKkcpQVv4PetTVGeUNN8BQ6+ mPFINqxDmYzL+yRck6bHQvL7D1IynSbr4Utb7zErgH3lwt/Z/5s/fjUfNZMhxBKWK0ki u5pEk9jdUJhnXubs4olD2BX95q3ewYHt2QtBA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=tPKuoEV3Ia7nSDrbJDMP5wjPCdWrs0tnLaWgn0S/4h9DppKT/zlmYl/retg7ZA27TM 3SDgR9v+8UDgx5VdkqWPVVoZRFWOYGjXLQse3U+V30f0B+FpuBBDHV1VazgWMDb1xoAK cPd8uBSATBbJBZQ6NPUaHod7SSueIDEQVpBcg= MIME-Version: 1.0 Received: by 10.220.167.133 with SMTP id q5mr2798351vcy.114.1277720046845; Mon, 28 Jun 2010 03:14:06 -0700 (PDT) Received: by 10.220.199.200 with HTTP; Mon, 28 Jun 2010 03:14:06 -0700 (PDT) In-Reply-To: References: <897604F6-95C4-49A8-B11F-277A74C8DBAE@gmail.com> Date: Mon, 28 Jun 2010 15:44:06 +0530 Message-ID: From: "Jayachandran C." To: Luiz Otavio O Souza Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-mips@freebsd.org Subject: Re: Merging 64 bit changes to -HEAD X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jun 2010 10:14:13 -0000 On Sun, Jun 27, 2010 at 8:20 PM, Jayachandran C. wrote: > On Sun, Jun 27, 2010 at 4:00 PM, Luiz Otavio O Souza wrote: >> On Jun 15, 2010, at 10:36 AM, Jayachandran C. wrote: >> >> ( ... ) >>> >>> I've tested this on XLR, but there is a chance that this might break >>> other platforms. So please let me know your comments on both the >>> patches and the merge process. >>> >>> The future patches (if everything goes well), will do the PTE_ flag to >>> PG_ flag renaming in Juli's tree, then the actual n32/n64 changes. >>> >>> Thanks, >>> JC. >> >> JC, >> >> I can't boot the ar71xx kernel after r209243: >> >> http://mips.pastebin.com/CBhe6hzR >> http://pastebin.com/nrRdm1UF >> >> Everything works fine with the previous revision (r209048). >> >> If you need anything else, just let me know. > > Let me have a look at this, thanks for the report. Can you enable 'TRAP_DEBUG' in sys/mips/mips/trap.c and see if you can get the trap information printed. Adding a line #define TRAP_DEBUG after all the #includes in trap.c should do it. This should print the pc, ra, and badvaddr which would help a lot in debugging. In the meantime I will look at the code again and see if I can find anything obviously wrong. Thanks, JC.