Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1725769
| From | Russell King - ARM Linux <linux@armlinux.org.uk> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH -tip 2/4] arm: Cleanup in_exception_text() and move it in asm/sections.h |
| Date | 2017-09-04 00:30 +0200 |
| Message-ID | <ulLyW-5Fg-3@gated-at.bofh.it> (permalink) |
| References | <ufnfY-1uW-3@gated-at.bofh.it> <ufnfX-1uW-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, Aug 17, 2017 at 04:15:00PM +0900, Masami Hiramatsu wrote:
> Cleanup in_exception_text() using memory_contains() and
> move it in asm/sections.h from asm/trap.h because
> section symbols and memory_contains() are defined in
> asm/sections.h.
>
> Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
> ---
> arch/arm/include/asm/sections.h | 17 +++++++++++++++++
> arch/arm/include/asm/traps.h | 22 +---------------------
> 2 files changed, 18 insertions(+), 21 deletions(-)
>
> diff --git a/arch/arm/include/asm/sections.h b/arch/arm/include/asm/sections.h
> index 803bbf2b20b8..76791cfc7619 100644
> --- a/arch/arm/include/asm/sections.h
> +++ b/arch/arm/include/asm/sections.h
> @@ -4,5 +4,22 @@
> #include <asm-generic/sections.h>
>
> extern char _exiprom[];
> +extern char __exception_text_start[], __exception_text_end[];
> +
> +/**
> + * in_exception_text - check if an address is in exception_text or
> + * irqentry_text
> + * @addr: virtual address to be checked
> + *
> + * Returns: true if the address specified by @addr is in the exception_text or
> + * irqentry_text, false otherwise.
> + */
> +static inline bool in_exception_text(unsigned long addr)
> +{
> + return memory_contains(__exception_text_start, __exception_text_end,
> + (void *)addr, 0) ||
> + memory_contains(__irqentry_text_start, __irqentry_text_end,
> + (void *)addr, 0);
Patch looks buggy - where is __irqentry_text_start and __irqentry_text_end
declared?
--
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line in suburbia: sync at 8.8Mbps down 630kbps up
According to speedtest.net: 8.21Mbps down 510kbps up
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
Re: [PATCH -tip 2/4] arm: Cleanup in_exception_text() and move it in asm/sections.h Russell King - ARM Linux <linux@armlinux.org.uk> - 2017-09-04 00:30 +0200 Re: [PATCH -tip 2/4] arm: Cleanup in_exception_text() and move it in asm/sections.h Masami Hiramatsu <mhiramat@kernel.org> - 2017-09-04 17:30 +0200
csiph-web