linux/arch/m68k/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 m68k: Add vmlinux.lds to .gitignore 2009-01-12 20:56:32 +01:00
asm-offsets_mm.c m68k: merge m68k and m68knommu arch directories 2011-03-25 14:05:13 +10:00
asm-offsets_no.c m68k: merge m68k and m68knommu arch directories 2011-03-25 14:05:13 +10:00
asm-offsets.c m68k: merge m68k and m68knommu arch directories 2011-03-25 14:05:13 +10:00
dma_mm.c m68k: merge m68k and m68knommu arch directories 2011-03-25 14:05:13 +10:00
dma_no.c m68k: merge m68k and m68knommu arch directories 2011-03-25 14:05:13 +10:00
dma.c m68k: merge m68k and m68knommu arch directories 2011-03-25 14:05:13 +10:00
entry_mm.S m68k: Merge mmu and non-mmu versions of sys_call_table 2011-05-19 18:19:10 +02:00
entry_no.S m68k: merge m68k and m68knommu arch directories 2011-03-25 14:05:13 +10:00
entry.S m68k: merge m68k and m68knommu arch directories 2011-03-25 14:05:13 +10:00
head.S Fix common misspellings 2011-03-31 11:26:23 -03:00
init_task.c m68k: merge m68k and m68knommu arch directories 2011-03-25 14:05:13 +10:00
ints.c m68k: Fix off-by-one in m68k_setup_user_interrupt() 2008-11-15 11:36:06 -08:00
irq.c m68k: Convert irq function namespace 2011-03-29 14:48:15 +02:00
m68k_ksyms_mm.c m68k: merge m68k and m68knommu arch directories 2011-03-25 14:05:13 +10:00
m68k_ksyms_no.c m68k: merge m68k and m68knommu arch directories 2011-03-25 14:05:13 +10:00
m68k_ksyms.c m68k: merge m68k and m68knommu arch directories 2011-03-25 14:05:13 +10:00
Makefile m68k: merge m68k and m68knommu arch directories 2011-03-25 14:05:13 +10:00
Makefile_mm m68k: Merge mmu and non-mmu versions of sys_call_table 2011-05-19 18:19:10 +02:00
Makefile_no m68k: merge m68k and m68knommu arch directories 2011-03-25 14:05:13 +10:00
module_mm.c m68k: merge m68k and m68knommu arch directories 2011-03-25 14:05:13 +10:00
module_no.c m68k: merge m68k and m68knommu arch directories 2011-03-25 14:05:13 +10:00
module.c m68k: merge m68k and m68knommu arch directories 2011-03-25 14:05:13 +10:00
module.lds
process_mm.c m68k: merge m68k and m68knommu arch directories 2011-03-25 14:05:13 +10:00
process_no.c m68k: merge m68k and m68knommu arch directories 2011-03-25 14:05:13 +10:00
process.c m68k: merge m68k and m68knommu arch directories 2011-03-25 14:05:13 +10:00
ptrace_mm.c m68k: merge m68k and m68knommu arch directories 2011-03-25 14:05:13 +10:00
ptrace_no.c m68k: merge m68k and m68knommu arch directories 2011-03-25 14:05:13 +10:00
ptrace.c m68k: merge m68k and m68knommu arch directories 2011-03-25 14:05:13 +10:00
setup_mm.c m68k: merge m68k and m68knommu arch directories 2011-03-25 14:05:13 +10:00
setup_no.c m68k: merge m68k and m68knommu arch directories 2011-03-25 14:05:13 +10:00
setup.c m68k: merge m68k and m68knommu arch directories 2011-03-25 14:05:13 +10:00
signal_mm.c m68k: merge m68k and m68knommu arch directories 2011-03-25 14:05:13 +10:00
signal_no.c m68k: merge m68k and m68knommu arch directories 2011-03-25 14:05:13 +10:00
signal.c m68k: merge m68k and m68knommu arch directories 2011-03-25 14:05:13 +10:00
sun3-head.S m68k: arch/m68k/kernel/sun3-head.S needs <linux/init.h> 2009-04-28 16:07:18 -07:00
sys_m68k_mm.c m68k: merge m68k and m68knommu arch directories 2011-03-25 14:05:13 +10:00
sys_m68k_no.c m68k: merge m68k and m68knommu arch directories 2011-03-25 14:05:13 +10:00
sys_m68k.c m68k: merge m68k and m68knommu arch directories 2011-03-25 14:05:13 +10:00
syscalltable.S m68k: Really wire up sys_pselect6 and sys_ppoll 2011-05-19 18:19:10 +02:00
time_mm.c m68k: merge m68k and m68knommu arch directories 2011-03-25 14:05:13 +10:00
time_no.c m68k: merge m68k and m68knommu arch directories 2011-03-25 14:05:13 +10:00
time.c m68k: merge m68k and m68knommu arch directories 2011-03-25 14:05:13 +10:00
traps_mm.c m68k: merge m68k and m68knommu arch directories 2011-03-25 14:05:13 +10:00
traps_no.c m68k: merge m68k and m68knommu arch directories 2011-03-25 14:05:13 +10:00
traps.c m68k: merge m68k and m68knommu arch directories 2011-03-25 14:05:13 +10:00
vmlinux-std.lds extable, core_kernel_data(): Make sure all archs define _sdata 2011-05-20 08:56:56 +02:00
vmlinux-sun3.lds extable, core_kernel_data(): Make sure all archs define _sdata 2011-05-20 08:56:56 +02:00
vmlinux.lds_mm.S m68k: merge m68k and m68knommu arch directories 2011-03-25 14:05:13 +10:00
vmlinux.lds_no.S Fix common misspellings 2011-03-31 11:26:23 -03:00
vmlinux.lds.S m68k: merge m68k and m68knommu arch directories 2011-03-25 14:05:13 +10:00