From: afzal mohammed <afzal.mohd.ma@gmail.com> To: Russell King - ARM Linux <linux@armlinux.org.uk> Cc: Vladimir Murzin <vladimir.murzin@arm.com>, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, afzal mohammed <afzal.mohd.ma@gmail.com> Subject: [PATCH 3/4] ARM: nommu: display vectors base Date: Thu, 19 Jan 2017 02:08:37 +0530 [thread overview] Message-ID: <20170118203837.6536-1-afzal.mohd.ma@gmail.com> (raw) In-Reply-To: <20170118203525.6246-1-afzal.mohd.ma@gmail.com> The exception base address is now dynamically estimated for no-MMU case, display it. Signed-off-by: afzal mohammed <afzal.mohd.ma@gmail.com> --- arch/arm/mm/init.c | 5 +++++ arch/arm/mm/mm.h | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c index cf47f86f79ed..9e11f255c3bf 100644 --- a/arch/arm/mm/init.c +++ b/arch/arm/mm/init.c @@ -522,7 +522,12 @@ void __init mem_init(void) " .data : 0x%p" " - 0x%p" " (%4td kB)\n" " .bss : 0x%p" " - 0x%p" " (%4td kB)\n", +#ifdef CONFIG_MMU MLK(UL(VECTORS_BASE), UL(VECTORS_BASE) + (PAGE_SIZE)), +#else + MLK_ROUNDUP(vectors_base, vectors_base + PAGE_SIZE), +#endif + #ifdef CONFIG_HAVE_TCM MLK(DTCM_OFFSET, (unsigned long) dtcm_end), MLK(ITCM_OFFSET, (unsigned long) itcm_end), diff --git a/arch/arm/mm/mm.h b/arch/arm/mm/mm.h index ce727d47275c..546f09437fca 100644 --- a/arch/arm/mm/mm.h +++ b/arch/arm/mm/mm.h @@ -79,8 +79,9 @@ struct static_vm { extern struct list_head static_vmlist; extern struct static_vm *find_static_vm_vaddr(void *vaddr); extern __init void add_static_vm_early(struct static_vm *svm); - -#endif +#else /* CONFIG_MMU */ +extern unsigned long vectors_base; +#endif /* CONFIG_MMU */ #ifdef CONFIG_ZONE_DMA extern phys_addr_t arm_dma_limit; -- 2.11.0
WARNING: multiple messages have this Message-ID (diff)
From: afzal.mohd.ma@gmail.com (afzal mohammed) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 3/4] ARM: nommu: display vectors base Date: Thu, 19 Jan 2017 02:08:37 +0530 [thread overview] Message-ID: <20170118203837.6536-1-afzal.mohd.ma@gmail.com> (raw) In-Reply-To: <20170118203525.6246-1-afzal.mohd.ma@gmail.com> The exception base address is now dynamically estimated for no-MMU case, display it. Signed-off-by: afzal mohammed <afzal.mohd.ma@gmail.com> --- arch/arm/mm/init.c | 5 +++++ arch/arm/mm/mm.h | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c index cf47f86f79ed..9e11f255c3bf 100644 --- a/arch/arm/mm/init.c +++ b/arch/arm/mm/init.c @@ -522,7 +522,12 @@ void __init mem_init(void) " .data : 0x%p" " - 0x%p" " (%4td kB)\n" " .bss : 0x%p" " - 0x%p" " (%4td kB)\n", +#ifdef CONFIG_MMU MLK(UL(VECTORS_BASE), UL(VECTORS_BASE) + (PAGE_SIZE)), +#else + MLK_ROUNDUP(vectors_base, vectors_base + PAGE_SIZE), +#endif + #ifdef CONFIG_HAVE_TCM MLK(DTCM_OFFSET, (unsigned long) dtcm_end), MLK(ITCM_OFFSET, (unsigned long) itcm_end), diff --git a/arch/arm/mm/mm.h b/arch/arm/mm/mm.h index ce727d47275c..546f09437fca 100644 --- a/arch/arm/mm/mm.h +++ b/arch/arm/mm/mm.h @@ -79,8 +79,9 @@ struct static_vm { extern struct list_head static_vmlist; extern struct static_vm *find_static_vm_vaddr(void *vaddr); extern __init void add_static_vm_early(struct static_vm *svm); - -#endif +#else /* CONFIG_MMU */ +extern unsigned long vectors_base; +#endif /* CONFIG_MMU */ #ifdef CONFIG_ZONE_DMA extern phys_addr_t arm_dma_limit; -- 2.11.0
next prev parent reply other threads:[~2017-01-18 21:08 UTC|newest] Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top 2017-01-18 20:35 [PATCH 0/4] ARM: v7-A !MMU support, CONFIG_VECTORS_BASE removal (almost) afzal mohammed 2017-01-18 20:35 ` afzal mohammed 2017-01-18 20:37 ` [PATCH 1/4] ARM: mmu: decouple VECTORS_BASE from Kconfig afzal mohammed 2017-01-18 20:37 ` afzal mohammed 2017-01-19 13:21 ` Afzal Mohammed 2017-01-19 13:21 ` Afzal Mohammed 2017-01-19 14:07 ` kbuild test robot 2017-01-19 14:07 ` kbuild test robot 2017-01-19 14:24 ` Russell King - ARM Linux 2017-01-19 14:24 ` Russell King - ARM Linux 2017-01-20 16:06 ` Afzal Mohammed 2017-01-20 16:06 ` Afzal Mohammed 2017-01-22 3:27 ` Afzal Mohammed 2017-01-22 3:27 ` Afzal Mohammed 2017-01-18 20:38 ` [PATCH 2/4] ARM: nommu: dynamic exception base address setting afzal mohammed 2017-01-18 20:38 ` afzal mohammed 2017-01-19 13:59 ` Vladimir Murzin 2017-01-19 13:59 ` Vladimir Murzin 2017-01-20 16:20 ` Afzal Mohammed 2017-01-20 16:20 ` Afzal Mohammed 2017-01-22 3:37 ` Afzal Mohammed 2017-01-22 3:37 ` Afzal Mohammed 2017-01-18 20:38 ` afzal mohammed [this message] 2017-01-18 20:38 ` [PATCH 3/4] ARM: nommu: display vectors base afzal mohammed 2017-01-18 22:13 ` Russell King - ARM Linux 2017-01-18 22:13 ` Russell King - ARM Linux 2017-01-19 13:16 ` Afzal Mohammed 2017-01-19 13:16 ` Afzal Mohammed 2017-01-30 12:09 ` Russell King - ARM Linux 2017-01-30 12:09 ` Russell King - ARM Linux 2017-01-18 20:39 ` [PATCH 4/4] ARM: nommu: remove Hivecs configuration is asm afzal mohammed 2017-01-18 20:39 ` afzal mohammed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20170118203837.6536-1-afzal.mohd.ma@gmail.com \ --to=afzal.mohd.ma@gmail.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux@armlinux.org.uk \ --cc=vladimir.murzin@arm.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.