From owner-freebsd-mips@FreeBSD.ORG Mon Jul 21 04:47:44 2008 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 E48EF106566B; Mon, 21 Jul 2008 04:47:44 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 881388FC3E; Mon, 21 Jul 2008 04:47:44 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id m6L4jRXS038916; Sun, 20 Jul 2008 22:45:27 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sun, 20 Jul 2008 22:45:27 -0600 (MDT) Message-Id: <20080720.224527.74712336.imp@bsdimp.com> To: gonzo@FreeBSD.org From: Warner Losh In-Reply-To: <48809595.4000006@freebsd.org> References: <487E4DF6.1020106@freebsd.org> <48809595.4000006@freebsd.org> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-mips@FreeBSD.org Subject: Re: Building FreeBSD MIPS 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, 21 Jul 2008 04:47:45 -0000 > Erik Moe wrote: > > If you have a patch against HEAD that would be great. > http://people.freebsd.org/~gonzo/mips2.diff.gz While driving across nebraska, I came up with something similar. I'll put it together and see how it differs. Warner From owner-freebsd-mips@FreeBSD.ORG Tue Jul 22 07:39:23 2008 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 1B151106567A; Tue, 22 Jul 2008 07:39:23 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id E42C78FC08; Tue, 22 Jul 2008 07:39:22 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id m6M7bBDX085557; Tue, 22 Jul 2008 01:37:11 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Tue, 22 Jul 2008 01:37:21 -0600 (MDT) Message-Id: <20080722.013721.1683323800.imp@bsdimp.com> To: gonzo@freebsd.org From: "M. Warner Losh" In-Reply-To: <48809595.4000006@freebsd.org> References: <487E4DF6.1020106@freebsd.org> <48809595.4000006@freebsd.org> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-mips@freebsd.org Subject: Re: Building FreeBSD MIPS 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: Tue, 22 Jul 2008 07:39:23 -0000 In message: <48809595.4000006@freebsd.org> Oleksandr Tymoshenko writes: : Erik Moe wrote: : > If you have a patch against HEAD that would be great. : http://people.freebsd.org/~gonzo/mips2.diff.gz I've uploaded my diffs. They are somewhat smaller and don't include other changes. Maybe they'd be easy to review? The trouble is that I run into problems here: cc -O -pipe -EL -msoft-float -G0 -mno-dsp -mabicalls -DHAVE_CONFIG_H -I/cache/svn/head/gnu/lib/libgomp -I. -I/cache/svn/head/gnu/lib/libgomp/../../../contrib/gcclibs/libgomp -I/cache/svn/head/gnu/lib/libgomp/../../../contrib/gcclibs/libgomp/config/posix -c /cache/svn/head/gnu/lib/libgomp/../../../contrib/gcclibs/libgomp/env.c In file included from /cache/svn/head/gnu/lib/libgomp/../../../contrib/gcclibs/libgomp/env.c:32: ./libgomp_f.h: In function 'omp_check_defines': ./libgomp_f.h:59: error: size of array 'test1' is negative ./libgomp_f.h:60: error: size of array 'test2' is negative ./libgomp_f.h:61: error: size of array 'test3' is negative ./libgomp_f.h:62: error: size of array 'test4' is negative ./libgomp_f.h:63: error: size of array 'test5' is negative *** Error code 1 Warner From owner-freebsd-mips@FreeBSD.ORG Tue Jul 22 14:10:41 2008 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 53174106564A for ; Tue, 22 Jul 2008 14:10:41 +0000 (UTC) (envelope-from gonzo@freebsd.org) Received: from luidgi.portaone.com (luidgi.portaone.com [195.138.219.143]) by mx1.freebsd.org (Postfix) with ESMTP id 350078FC18 for ; Tue, 22 Jul 2008 14:10:41 +0000 (UTC) (envelope-from gonzo@freebsd.org) Received: from mail.pbxpress.com ([65.61.203.142] helo=leaf.pbxpress.com) by luidgi.portaone.com (8.11.3/8.11.3) with ESMTP (TLSv1:AES256-SHA:256)id 1KLIZc-000I7o-JM; Tue, 22 Jul 2008 07:10:40 -0700 Received: from jeeves.bluezbox.com (k3-gw.portaone.com [193.28.87.193]) (authenticated bits=0) by leaf.pbxpress.com (8.13.3/8.13.3) with ESMTP id m6MEE8oe095006 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 22 Jul 2008 07:14:17 -0700 (PDT) (envelope-from gonzo@freebsd.org) Message-ID: <4885EA58.6000401@freebsd.org> Date: Tue, 22 Jul 2008 17:10:32 +0300 From: Oleksandr Tymoshenko User-Agent: Thunderbird 2.0.0.14 (X11/20080704) MIME-Version: 1.0 To: "M. Warner Losh" References: <487E4DF6.1020106@freebsd.org> <48809595.4000006@freebsd.org> <20080722.013721.1683323800.imp@bsdimp.com> In-Reply-To: <20080722.013721.1683323800.imp@bsdimp.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, recieved from trusted server Cc: freebsd-mips@freebsd.org Subject: Re: Building FreeBSD MIPS 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: Tue, 22 Jul 2008 14:10:41 -0000 M. Warner Losh wrote: > In message: <48809595.4000006@freebsd.org> > Oleksandr Tymoshenko writes: > : Erik Moe wrote: > : > If you have a patch against HEAD that would be great. > : http://people.freebsd.org/~gonzo/mips2.diff.gz > > I've uploaded my diffs. They are somewhat smaller and don't include > other changes. Maybe they'd be easy to review? Just notcied - my diff contains a lot of garbage in it :(. Let's start with yours. -- gonzo From owner-freebsd-mips@FreeBSD.ORG Tue Jul 22 15:10:05 2008 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 6C7B1106566B for ; Tue, 22 Jul 2008 15:10:05 +0000 (UTC) (envelope-from ehmoeok@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.152]) by mx1.freebsd.org (Postfix) with ESMTP id E94BD8FC14 for ; Tue, 22 Jul 2008 15:10:04 +0000 (UTC) (envelope-from ehmoeok@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so1182196fgb.35 for ; Tue, 22 Jul 2008 08:10:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=Eu0PJ0qP71Ds0SWQTFJ42VNuY71pL9jZjNAhP7lmJ9w=; b=RsaKbobTuM8wkABiUgl6XqP39569ft+bUar3TLCnMtDCSZ7ZWoGT8zpKT44wrlCjOf gbT6K383X9Q109QGl1e7GXzuq1i06l8AkU/tPevVkXo3ouRLkbsJjgFZ11rnhXKuwD+/ PmpyXqWxoSLipYCBlA69frbaiTYTu8xT+Von8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=XY8ku6qnvyoqb9ro0oRtjIoI2+F38iWAGSiwu0F+mmhchKurTyGlIe5OFTzUd/UZor SM4pZ17aASnMsqqtoK0WatFqnS7zqfWzeSBE7LItP3VXz6bBzYxX37I4SQwQ4mR+utZu pupVhc2UfBbtPFSuxSSCrc7Wt103MsqfhRayw= Received: by 10.86.96.18 with SMTP id t18mr4117212fgb.78.1216739403734; Tue, 22 Jul 2008 08:10:03 -0700 (PDT) Received: by 10.86.70.1 with HTTP; Tue, 22 Jul 2008 08:10:03 -0700 (PDT) Message-ID: Date: Tue, 22 Jul 2008 09:10:03 -0600 From: "Erik Moe" To: "Oleksandr Tymoshenko" In-Reply-To: <4885EA58.6000401@freebsd.org> MIME-Version: 1.0 References: <487E4DF6.1020106@freebsd.org> <48809595.4000006@freebsd.org> <20080722.013721.1683323800.imp@bsdimp.com> <4885EA58.6000401@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-mips@freebsd.org Subject: Re: Building FreeBSD MIPS 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: Tue, 22 Jul 2008 15:10:05 -0000 Sorry, I missed something. The http://people.freebsd.org/~gonzo/mips2.diff.gzisn't out there. There is a toolchain.diff . You were recommended that I use Warner's diffs instead? Were are Warner's diffs? Thanks On Tue, Jul 22, 2008 at 8:10 AM, Oleksandr Tymoshenko wrote: > M. Warner Losh wrote: > >> In message: <48809595.4000006@freebsd.org> >> Oleksandr Tymoshenko writes: >> : Erik Moe wrote: >> : > If you have a patch against HEAD that would be great. >> : http://people.freebsd.org/~gonzo/mips2.diff.gz >> >> I've uploaded my diffs. They are somewhat smaller and don't include >> other changes. Maybe they'd be easy to review? >> > Just notcied - my diff contains a lot of garbage in it :(. > Let's start with yours. > > -- > gonzo > _______________________________________________ > 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" > From owner-freebsd-mips@FreeBSD.ORG Tue Jul 22 16:03:01 2008 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 E3A6F1065685; Tue, 22 Jul 2008 16:03:01 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id A66948FC1C; Tue, 22 Jul 2008 16:03:01 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id m6MG04om098359; Tue, 22 Jul 2008 10:00:04 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Tue, 22 Jul 2008 10:00:04 -0600 (MDT) Message-Id: <20080722.100004.74655229.imp@bsdimp.com> To: ehmoeok@gmail.com From: Warner Losh In-Reply-To: References: <20080722.013721.1683323800.imp@bsdimp.com> <4885EA58.6000401@freebsd.org> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: gonzo@FreeBSD.org, freebsd-mips@FreeBSD.org Subject: Re: Building FreeBSD MIPS 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: Tue, 22 Jul 2008 16:03:02 -0000 From: "Erik Moe" Subject: Re: Building FreeBSD MIPS Date: Tue, 22 Jul 2008 09:10:03 -0600 > Sorry, I missed something. The > http://people.freebsd.org/~gonzo/mips2.diff.gzisn't > out there. There is a > toolchain.diff . You > were recommended that I use Warner's diffs instead? > > Were are Warner's diffs? http://people.freebsd.org/~imp/mips2-imp.diff.gz Warner > On Tue, Jul 22, 2008 at 8:10 AM, Oleksandr Tymoshenko wrote: > > > M. Warner Losh wrote: > > > >> In message: <48809595.4000006@freebsd.org> > >> Oleksandr Tymoshenko writes: > >> : Erik Moe wrote: > >> : > If you have a patch against HEAD that would be great. > >> : http://people.freebsd.org/~gonzo/mips2.diff.gz > >> > >> I've uploaded my diffs. They are somewhat smaller and don't include > >> other changes. Maybe they'd be easy to review? > >> > > Just notcied - my diff contains a lot of garbage in it :(. > > Let's start with yours. > > > > -- > > gonzo > > _______________________________________________ > > 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" > > From owner-freebsd-mips@FreeBSD.ORG Thu Jul 24 20:59:38 2008 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 EE118106566C for ; Thu, 24 Jul 2008 20:59:38 +0000 (UTC) (envelope-from jrytoung@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.226]) by mx1.freebsd.org (Postfix) with ESMTP id B356C8FC08 for ; Thu, 24 Jul 2008 20:59:38 +0000 (UTC) (envelope-from jrytoung@gmail.com) Received: by wr-out-0506.google.com with SMTP id c8so1354993wra.27 for ; Thu, 24 Jul 2008 13:59:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=Z/ztt61hlK1dUh8DHPC3YcKl53GmxUSKKWNfOwKlhac=; b=suDcnI5gi50UmYtOMz5Fmo0sqQzy/jHMy1O8RFdGpK5pAsqzuB+2EJzWAsBgkEofA9 phqwpweSGpf0gQF4ndJbSSiU2FlyJ4zCM748LLgPuRALl5zrCUNq0ulyhuX/Rcj8uXzT KOGkBj+cp4p1GqbHhIIRrL+EBXMZqzqETS0rM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=Tcwmd9p2cnbReoQ46xFOPrrNyOPYDMqzSBAfultOBTfe8JgS/NmqJQCpXbRTtItRes MvJt01t6am7oGBYD2TqNLWnigSwpoe1QdyZgqvvcuiQdxtZLnxULKp2bkyiiJ6evg9B2 2RHIHy3q180+fcxIm4I+m5lgiswnaXakNrZ7g= Received: by 10.90.86.9 with SMTP id j9mr916159agb.11.1216931617950; Thu, 24 Jul 2008 13:33:37 -0700 (PDT) Received: by 10.90.33.10 with HTTP; Thu, 24 Jul 2008 13:33:37 -0700 (PDT) Message-ID: <86068e730807241333v4d9f35d4ve4e4a266bb6d8121@mail.gmail.com> Date: Thu, 24 Jul 2008 13:33:37 -0700 From: "Jerry Toung" To: freebsd-mips@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: mips_phys_mask define 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: Thu, 24 Jul 2008 20:59:39 -0000 Hello list, still learning. Could someone explain why MIPS_PHYS_MASK is 0x1fffffff and not 0x7fffffff when you want to convert a program's address back to physical? Thanks, Jerry From owner-freebsd-mips@FreeBSD.ORG Thu Jul 24 21:39:20 2008 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 B52531065677 for ; Thu, 24 Jul 2008 21:39:20 +0000 (UTC) (envelope-from gonzo@freebsd.org) Received: from luidgi.portaone.com (luidgi.portaone.com [195.138.219.143]) by mx1.freebsd.org (Postfix) with ESMTP id 9FC9C8FC12 for ; Thu, 24 Jul 2008 21:39:20 +0000 (UTC) (envelope-from gonzo@freebsd.org) Received: from mail.pbxpress.com ([65.61.203.142] helo=leaf.pbxpress.com) by luidgi.portaone.com (8.11.3/8.11.3) with ESMTP (TLSv1:AES256-SHA:256)id 1KM8Wu-0005gw-6X; Thu, 24 Jul 2008 14:39:20 -0700 Received: from jeeves.bluezbox.com (82.193.112.144.ipnet.kiev.ua [82.193.112.144]) (authenticated bits=0) by leaf.pbxpress.com (8.13.3/8.13.3) with ESMTP id m6OLgeTu052969 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 24 Jul 2008 14:42:53 -0700 (PDT) (envelope-from gonzo@freebsd.org) Message-ID: <4888F674.4010004@freebsd.org> Date: Fri, 25 Jul 2008 00:39:00 +0300 From: Oleksandr Tymoshenko User-Agent: Thunderbird 2.0.0.14 (X11/20080704) MIME-Version: 1.0 To: Jerry Toung References: <86068e730807241333v4d9f35d4ve4e4a266bb6d8121@mail.gmail.com> In-Reply-To: <86068e730807241333v4d9f35d4ve4e4a266bb6d8121@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, recieved from trusted server Cc: freebsd-mips@freebsd.org Subject: Re: mips_phys_mask define 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: Thu, 24 Jul 2008 21:39:20 -0000 Jerry Toung wrote: > Hello list, > still learning. Could someone explain why > MIPS_PHYS_MASK is 0x1fffffff and not 0x7fffffff when you want to convert a > program's address > back to physical? MIPS_PHYS_MASK is used to convert addresses from KSEG0 and KSEG1 to physical ones. KSEG0 and KSEG1 are 2**29 bytes each. So the mask should be 2**29 - 1. That gives us 0x1fffffff. I'd suggest you to read MIPS32(tm) Architecture For Programmers Volume III: The MIPS32(tm) Privileged Resource Architecture. It's a nice starting point. You can download the document from mips.com site. -- gonzo From owner-freebsd-mips@FreeBSD.ORG Fri Jul 25 00:02:39 2008 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 CE1E31065686 for ; Fri, 25 Jul 2008 00:02:39 +0000 (UTC) (envelope-from jrytoung@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.232]) by mx1.freebsd.org (Postfix) with ESMTP id 856338FC08 for ; Fri, 25 Jul 2008 00:02:39 +0000 (UTC) (envelope-from jrytoung@gmail.com) Received: by wr-out-0506.google.com with SMTP id c8so1419595wra.27 for ; Thu, 24 Jul 2008 17:02:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=P714na9hTvVrNnvtp+feD2UTFF48ZmTotOBdKXk54G0=; b=HrgsyxhAUIOY6kq93FwUD+fxgdE1RoJTGM2h9W0VZqdq4RdtxFMzd4ZDoytsfFDn4c gGVzbFB8ZKwtW1WyrecZLWYMUjTOKxP3LoTNJUp+LhoV4yP5AiCGOpRFChKGKTeTfAla ClEysvacKVbZPqU8b5BRSugXRe9qnMrEw/Tt8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=HwKVGnQCNkOpbDxzQgG63QrYKxkFUyQkdiTaDakKzY+nF2pEEHSGu91mOQ3cVgiZF4 nz7fCnI/0gB1VMn6KX2FeNZvSBv3wXlWecQm3Myy0Y05XOvHEUYo4OtX6w9ZGsbl98fN dZPpJFTi/vunPArnfXpMBiBp/l8I5C8oI7b6g= Received: by 10.90.100.17 with SMTP id x17mr1180594agb.19.1216944158316; Thu, 24 Jul 2008 17:02:38 -0700 (PDT) Received: by 10.90.33.10 with HTTP; Thu, 24 Jul 2008 17:02:38 -0700 (PDT) Message-ID: <86068e730807241702u10c031a7k84cbcadaf727b810@mail.gmail.com> Date: Thu, 24 Jul 2008 17:02:38 -0700 From: "Jerry Toung" To: "Oleksandr Tymoshenko" In-Reply-To: <4888F674.4010004@freebsd.org> MIME-Version: 1.0 References: <86068e730807241333v4d9f35d4ve4e4a266bb6d8121@mail.gmail.com> <4888F674.4010004@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-mips@freebsd.org Subject: Re: mips_phys_mask define 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: Fri, 25 Jul 2008 00:02:40 -0000 On Thu, Jul 24, 2008 at 2:39 PM, Oleksandr Tymoshenko wrote: > Jerry Toung wrote: > >> Hello list, >> still learning. Could someone explain why >> MIPS_PHYS_MASK is 0x1fffffff and not 0x7fffffff when you want to convert a >> program's address >> back to physical? >> > MIPS_PHYS_MASK is used to convert addresses from KSEG0 and KSEG1 to > physical > ones. KSEG0 and KSEG1 are 2**29 bytes each. So the mask should be 2**29 - > 1. > That gives us 0x1fffffff. > > I'd suggest you to read MIPS32(tm) Architecture For Programmers Volume III: > The MIPS32(tm) Privileged Resource Architecture. It's a nice starting > point. > You can download the document from mips.com site. > > -- > gonzo > thank you for the explaination Gonzo. I have been reading "see MIPS run Linux, 2nd edition" as suggested by Warner a while back. I'll download the doc you mentioned. Jerry