Re: 2.6.10-rc1-mm3

Ingo Molnar
2004-11-05T10:16:52Z

* Andrew Morton <akpm@osdl.org> wrote:

> - Added Andi's 4-level-pagetable patches. It's tested on x86, x86_64, ia64
> and ppc64. These are fairly intrusive patches and I'll probably push them
> upstream soon.

make it compile on x86 with !REGPARM (default):

Signed-off-by: Ingo Molnar <mingo@elte.hu>

--- linux/arch/i386/mm/pgtable.c.orig
+++ linux/arch/i386/mm/pgtable.c
@@ -221,7 +221,7 @@ void pgd_dtor(void *pgd, kmem_cache_t *c
spin_unlock_irqrestore(&pgd_lock, flags);
}

-pgd_t *__pgd_alloc(struct mm_struct *mm, pml4_t *pml4, unsigned long address)
+pgd_t fastcall *__pgd_alloc(struct mm_struct *mm, pml4_t *pml4, unsigned long address)
{
int i;
pgd_t *pgd = kmem_cache_alloc(pgd_cache, GFP_KERNEL);