From mboxrd@z Thu Jan 1 00:00:00 1970 From: will.deacon@arm.com (Will Deacon) Date: Fri, 18 Nov 2011 12:08:17 +0000 Subject: [PATCH 1/4] ARM: idmap: populate identity map pgd at init time using .init.text In-Reply-To: References: <1321462094-6647-1-git-send-email-will.deacon@arm.com> <1321462094-6647-2-git-send-email-will.deacon@arm.com> Message-ID: <20111118120817.GE2765@mudshark.cambridge.arm.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Fri, Nov 18, 2011 at 12:02:03PM +0000, Catalin Marinas wrote: > On 16 November 2011 16:48, Will Deacon wrote: > > --- a/include/asm-generic/vmlinux.lds.h > > +++ b/include/asm-generic/vmlinux.lds.h > > @@ -425,6 +425,12 @@ > > ? ? ? ? ? ? ? ?*(.kprobes.text) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?\ > > ? ? ? ? ? ? ? ?VMLINUX_SYMBOL(__kprobes_text_end) = .; > > > > +#define IDMAP_TEXT ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? \ > > + ? ? ? ? ? ? ? ALIGN_FUNCTION(); ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? \ > > + ? ? ? ? ? ? ? VMLINUX_SYMBOL(__idmap_text_start) = .; ? ? ? ? ? ? ? ? \ > > + ? ? ? ? ? ? ? *(.idmap.text) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?\ > > + ? ? ? ? ? ? ? VMLINUX_SYMBOL(__idmap_text_end) = .; > > + > > ?#define ENTRY_TEXT ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? \ > > ? ? ? ? ? ? ? ?ALIGN_FUNCTION(); ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? \ > > ? ? ? ? ? ? ? ?VMLINUX_SYMBOL(__entry_text_start) = .; ? ? ? ? ? ? ? ? \ > > Since IDMAP is specific to ARM, we should just add the IDMAP_TEXT > macro to vmlinux.lds.S. Argh, well spotted! ctags launched me there and I didn't realise I was outside of my usual stomping ground. I'll fix this. Will