From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gerd Knorr Subject: Re: PAE patches / hypercall interface changes Date: 09 Jun 2005 11:40:29 +0200 Message-ID: <87br6f27hu.fsf@bytesex.org> References: <20050608152155.GB18819@bytesex> <000801c56c53$5bc723b0$0201a8c0@hawk> <20050608181627.GB20591@bytesex> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: In-Reply-To: <20050608181627.GB20591@bytesex> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Christopher S. Aker" Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Gerd Knorr writes: > > (XEN) System RAM: 6143MB (6290476kB) > > Not enough memory for frame table > > I'll have a look tomorrow. Here we go. Boot allocator uses "unsigned long" for physical addresses and thus doesn't work in PAE mode. Fix below. That patch could make it work (or at least fail later in boot ;) cheers, Gerd ==============================[ cut here ]============================== --- xen.orig/common/page_alloc.c 2005-06-08 16:25:02.000000000 +0200 +++ xen/common/page_alloc.c 2005-06-09 11:37:29.000000000 +0200 @@ -148,7 +148,7 @@ unsigned long init_boot_allocator(unsign return bitmap_start + bitmap_size; } -void init_boot_pages(unsigned long ps, unsigned long pe) +void init_boot_pages(physaddr_t ps, physaddr_t pe) { unsigned long bad_pfn; char *p; --- xen.orig/include/xen/mm.h 2005-06-08 16:25:02.000000000 +0200 +++ xen/include/xen/mm.h 2005-06-09 11:38:41.000000000 +0200 @@ -11,7 +11,7 @@ struct pfn_info; /* Boot-time allocator. Turns into generic allocator after bootstrap. */ unsigned long init_boot_allocator(unsigned long bitmap_start); -void init_boot_pages(unsigned long ps, unsigned long pe); +void init_boot_pages(physaddr_t ps, physaddr_t pe); unsigned long alloc_boot_pages(unsigned long size, unsigned long align); void end_boot_allocator(void);