Re: [PATCH 2/6] arm64: Add function to create identity mappings

2014-01-22 Thread Catalin Marinas
On Fri, Jan 10, 2014 at 10:29:06PM +, Mark Salter wrote: > +void __init create_id_mapping(phys_addr_t addr, phys_addr_t size) > +{ > + pgd_t *pgd = &idmap_pg_dir[pgd_index(addr)]; > + > + if (pgd >= &idmap_pg_dir[ARRAY_SIZE(idmap_pg_dir)]) { > + pr_warn("BUG: not creating id

[PATCH 2/6] arm64: Add function to create identity mappings

2014-01-10 Thread Mark Salter
At boot time, UEFI runtime support needs to call into the UEFI firmware to switch to a virtual address map. This call must be made with UEFI memory regions identity mapped. The exisitng early boot code creates an identity map of kernel text/data but this is not sufficient for UEFI. This patch adds