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-devel

Re: [Xen-devel] PAE xen + linux kernel boots ...

To: Scott Parish <srparish@xxxxxxxxxx>
Subject: Re: [Xen-devel] PAE xen + linux kernel boots ...
From: Gerd Knorr <kraxel@xxxxxxxxxxx>
Date: Sun, 1 May 2005 00:55:54 +0200
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sat, 30 Apr 2005 22:59:41 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20050430084040.GB16883@xxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20050425172624.GB22076@bytesex> <87ll74o29m.fsf@xxxxxxxxxxx> <20050430084040.GB16883@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
> +#if defined(__i386__) && defined(CONFIG_X86_PAE)
> +    l3_pgentry_t *pl3e;
> +    l2_pgentry_t *pl2e;
> +    l1_pgentry_t *pl1e;
> +        
> +    pl3e = &idle_pg_table[l3_table_offset(addr)];
> +    printk(" L3 = 0x%016llx\n", l3e_get_value(*pl3e));

Well, that isn't needed.

>      page = l2e_get_value(idle_pg_table[l2_table_offset(addr)]);

Just make that "idle_pg_table_l2[l2_linear_offset(addr)]" should work
ok.  The idle_pg tables are contignous in physical (and virtual) memory,
so you basically don't have to care about the idle_pg_table_l3 at all
and can simply use idle_pg_table_l2 directly.

  Gerd

-- 
#define printk(args...) fprintf(stderr, ## args)

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