lkml.org 
[lkml]   [2009]   [Jun]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/4] asm/sections: add text/data checking functions for arches to override
On Wed, 17 Jun 2009 12:22:21 -0400
Mike Frysinger <vapier@gentoo.org> wrote:

> Some ports (like the Blackfin arch) have a discontiguous memory map which
> means there may be text or data that falls outside of the standard range
> of the start/end text/data symbols. Creating some helper functions allows
> these non-standard ports to declare these regions without adversely
> affecting anyone else.
>

The patches look OK to me.

I assumed they're for 2.6.32.

> index 4ce48e8..ee19462 100644
> --- a/include/asm-generic/sections.h
> +++ b/include/asm-generic/sections.h
> @@ -20,4 +20,20 @@ extern char __start_rodata[], __end_rodata[];
> #define dereference_function_descriptor(p) (p)
> #endif
>
> +/* random extra sections (if any). Override
> + * in asm/sections.h */
> +#ifndef arch_is_kernel_text
> +static inline int arch_is_kernel_text(unsigned long addr)
> +{
> + return 0;
> +}
> +#endif
> +
> +#ifndef arch_is_kernel_data
> +static inline int arch_is_kernel_data(unsigned long addr)
> +{
> + return 0;
> +}
> +#endif

I suppose that for completeness and consistency etc really we should have

#define arch_is_kernel_text arch_is_kernel_text
#define arch_is_kernel_data arch_is_kernel_data

in here.


\
 
 \ /
  Last update: 2009-06-24 00:45    [W:0.048 / U:1.308 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site