linux/arch/m32r/kernel
Steven Rostedt a2d063ac21 extable, core_kernel_data(): Make sure all archs define _sdata
A new utility function (core_kernel_data()) is used to determine if a
passed in address is part of core kernel data or not. It may or may not
return true for RO data, but this utility must work for RW data.

Thus both _sdata and _edata must be defined and continuous,
without .init sections that may later be freed and replaced by
volatile memory (memory that can be freed).

This utility function is used to determine if data is safe from
ever being freed. Thus it should return true for all RW global
data that is not in a module or has been allocated, or false
otherwise.

Also change core_kernel_data() back to the more precise _sdata condition
and document the function.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Acked-by: Ralf Baechle <ralf@linux-mips.org>
Acked-by: Hirokazu Takata <takata@linux-m32r.org>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: Matt Turner <mattst88@gmail.com>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Roman Zippel <zippel@linux-m68k.org>
Cc: linux-m68k@lists.linux-m68k.org
Cc: Kyle McMartin <kyle@mcmartin.ca>
Cc: Helge Deller <deller@gmx.de>
Cc: JamesE.J.Bottomley <jejb@parisc-linux.org>
Link: http://lkml.kernel.org/r/1305855298.1465.19.camel@gandalf.stny.rr.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
----
 arch/alpha/kernel/vmlinux.lds.S   |    1 +
 arch/m32r/kernel/vmlinux.lds.S    |    1 +
 arch/m68k/kernel/vmlinux-std.lds  |    2 ++
 arch/m68k/kernel/vmlinux-sun3.lds |    1 +
 arch/mips/kernel/vmlinux.lds.S    |    1 +
 arch/parisc/kernel/vmlinux.lds.S  |    3 +++
 kernel/extable.c                  |   12 +++++++++++-
 7 files changed, 20 insertions(+), 1 deletion(-)
2011-05-20 08:56:56 +02:00
..
.gitignore m32r: add kernel/.gitignore and ignore vmlinux.lds 2010-10-15 19:37:50 -07:00
align.c
asm-offsets.c
entry.S make m32r handle multiple pending signals 2010-09-24 13:54:19 -07:00
head.S m32r: Move the spi_stack_top and spu_stack_top into .init.data section. 2009-09-23 00:29:40 +09:00
init_task.c Use new __init_task_data macro in arch init_task.c files. 2009-09-21 06:27:08 +02:00
irq.c m32r: Use generic show_interrupts() 2011-03-24 20:35:57 +01:00
m32r_ksyms.c m32r: export delay loop symbols 2009-10-04 12:02:36 +09:00
Makefile m32r: build fix for __stringify macro 2009-05-02 21:43:26 +09:00
module.c module: cleanup FIXME comments about trimming exception table entries. 2009-06-12 21:47:05 +09:30
process.c Make do_execve() take a const filename pointer 2010-08-17 18:07:43 -07:00
ptrace.c ptrace: cleanup arch_ptrace() on m32r 2010-10-27 18:03:11 -07:00
setup.c procfs: constify function pointer tables 2008-02-08 09:22:38 -08:00
signal.c m32r: get_user takes an lvalue, not a pointer 2010-10-15 19:37:50 -07:00
smp.c sched: Provide scheduler_ipi() callback in response to smp_send_reschedule() 2011-04-14 08:52:32 +02:00
smpboot.c cpumask: Use accessors for cpu_*_mask: m32r 2009-09-24 09:34:47 +09:30
sys_m32r.c Make do_execve() take a const filename pointer 2010-08-17 18:07:43 -07:00
syscall_table.S Unify sys_mmap* 2009-12-11 06:44:29 -05:00
time.c m32r: Switch from do_timer() to xtime_update() 2011-01-31 14:55:45 +01:00
traps.c m32r: Fix IPI function calls for SMP 2009-10-04 12:02:37 +09:00
vmlinux.lds.S extable, core_kernel_data(): Make sure all archs define _sdata 2011-05-20 08:56:56 +02:00