diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-02-22 15:26:21 +0000 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-02-22 15:26:21 +0000 |
commit | 6a20532c7b680a6aef8896491f14226157f4cb85 (patch) | |
tree | 4897fe9a754306d754642229b5e575af6e0e023d /xen/include/xen/mm.h | |
parent | 92eb4bd779250e470191a0d36f4a310134fb76c8 (diff) | |
download | xen-6a20532c7b680a6aef8896491f14226157f4cb85.tar.gz xen-6a20532c7b680a6aef8896491f14226157f4cb85.tar.bz2 xen-6a20532c7b680a6aef8896491f14226157f4cb85.zip |
alloc_boot_pages() allocates downwards from high memory.
This conserves low memory.
Provide new function alloc_boot_low_pages() for those callers who
actually require lowmem pages (e.g., below 4GB).
Based on a patch by Chris Lalancette <clalance@redhat.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/include/xen/mm.h')
-rw-r--r-- | xen/include/xen/mm.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/xen/include/xen/mm.h b/xen/include/xen/mm.h index 2326b70442..9a121b1f08 100644 --- a/xen/include/xen/mm.h +++ b/xen/include/xen/mm.h @@ -39,8 +39,11 @@ struct page_info; /* Boot-time allocator. Turns into generic allocator after bootstrap. */ paddr_t init_boot_allocator(paddr_t bitmap_start); void init_boot_pages(paddr_t ps, paddr_t pe); -unsigned long alloc_boot_pages(unsigned long nr_pfns, unsigned long pfn_align); -unsigned long alloc_boot_pages_at(unsigned long nr_pfns, unsigned long pfn_at); +unsigned long alloc_boot_pages( + unsigned long nr_pfns, unsigned long pfn_align); +unsigned long alloc_boot_low_pages( + unsigned long nr_pfns, unsigned long pfn_align); +int reserve_boot_pages(unsigned long first_pfn, unsigned long nr_pfns); void end_boot_allocator(void); /* Generic allocator. These functions are *not* interrupt-safe. */ |