WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ia64-devel

Re: [Xen-ia64-devel] Re: [PATCH]: ptc.ga for SMP-g

To: "Xu, Anthony" <anthony.xu@xxxxxxxxx>
Subject: Re: [Xen-ia64-devel] Re: [PATCH]: ptc.ga for SMP-g
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Fri, 31 Mar 2006 11:52:46 +0900
Cc: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx, Tristan Gingold <Tristan.Gingold@xxxxxxxx>
Delivery-date: Fri, 31 Mar 2006 02:54:10 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <2BF508F394C196468CCBEC031320DCDF38099C@pdsmsx405>
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
References: <2BF508F394C196468CCBEC031320DCDF38099C@pdsmsx405>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.2.1i
On Fri, Mar 31, 2006 at 10:42:13AM +0800, Xu, Anthony wrote:
> >From: Isaku Yamahata >Sent: 2006年3月31日 9:23
> >> PAGE_OFFSET + 64MB is covered by a tr, isn't it ?
> >
> >[PAGE_OFFSET, PAGE_OFFSET + KERNEL_TR_PAGE_SIZE - 1] is covered.
> >Here KERNEL_TR_PAGE_SIZE = 64MB which is defined
> >in linux/asm-ia64/pgtable.h.
> >
> >For safety, please consider
> >PAGE_OFFSET + KERNEL_TR_PAGE_SIZE * n + (small offsets).
> >
> 
> This is true in x86.
> But it is not true in ia64.
> 
> PAGE_OFFSET                   __IA64_UL_CONST(0xe000000000000000)
> Linux kernel starts from 0xa000000100000000.

It's right that Linux/ia64 kernel text and statically allocated data
are in [0xa000000100000000, ...].
However dynamically allocated pages's virtual address are in
the area of [PAGE_OFFSET, ...].
That is, values which is returned by __get_free_pages() (and its family)
are of PAGE_OFFSET + (some offsets).

Please see the definition of __pa() and __va() of Linux/ia64.
# define __pa(x)                ((x) - PAGE_OFFSET)
# define __va(x)                ((x) + PAGE_OFFSET)



-- 
yamahata

_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel