Re: [PATCH v2 06/31] arm64: MMU fault handling and page table management

2012-08-17 Thread Catalin Marinas
On Wed, Aug 15, 2012 at 02:47:00PM +0100, Arnd Bergmann wrote: > On Tuesday 14 August 2012, Catalin Marinas wrote: > > +pgd_t *pgd_alloc(struct mm_struct *mm) > > +{ > > + pgd_t *new_pgd; > > + > > + new_pgd = (pgd_t *)__get_free_pages(GFP_KERNEL, PGD_ORDER); > > + if (!new_pgd) > > +

Re: [PATCH v2 06/31] arm64: MMU fault handling and page table management

2012-08-15 Thread Arnd Bergmann
On Tuesday 14 August 2012, Catalin Marinas wrote: > + > +pgd_t *pgd_alloc(struct mm_struct *mm) > +{ > + pgd_t *new_pgd; > + > + new_pgd = (pgd_t *)__get_free_pages(GFP_KERNEL, PGD_ORDER); > + if (!new_pgd) > + return NULL; > + > + memset(new_pgd, 0, PAGE_SIZE << PGD_ORD

[PATCH v2 06/31] arm64: MMU fault handling and page table management

2012-08-14 Thread Catalin Marinas
This patch adds support for the handling of the MMU faults (exception entry code introduced by a previous patch) and page table management. The user translation table is pointed to by TTBR0 and the kernel one (swapper_pg_dir) by TTBR1. There is no translation information shared or address space ov