aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Smith <chris.smith@st.com>2010-01-27 08:03:11 -0500
committerPaul Mundt <lethal@linux-sh.org>2010-01-27 08:03:11 -0500
commit660e2acad81c19b404f7d7d06e57a6d5e6ce7426 (patch)
tree377b2e0f9d4219b301c1f3c16311a7710e2d4abc
parent08b36c4a02b5a9db609fc6d93b9c41d7fa75713c (diff)
sh: kmemleak support.
Enables support for kmemleak on sh. Signed-off-by: Chris Smith <chris.smith@st.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
-rw-r--r--arch/sh/kernel/vmlinux.lds.S6
-rw-r--r--lib/Kconfig.debug2
2 files changed, 4 insertions, 4 deletions
diff --git a/arch/sh/kernel/vmlinux.lds.S b/arch/sh/kernel/vmlinux.lds.S
index 93e9b25a1811..f0bc6b886eed 100644
--- a/arch/sh/kernel/vmlinux.lds.S
+++ b/arch/sh/kernel/vmlinux.lds.S
@@ -50,12 +50,12 @@ SECTIONS
50 } = 0x0009 50 } = 0x0009
51 51
52 EXCEPTION_TABLE(16) 52 EXCEPTION_TABLE(16)
53
54 NOTES 53 NOTES
54
55 _sdata = .;
55 RO_DATA(PAGE_SIZE) 56 RO_DATA(PAGE_SIZE)
56 RW_DATA_SECTION(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE) 57 RW_DATA_SECTION(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
57 58 _edata = .;
58 _edata = .; /* End of data section */
59 59
60 DWARF_EH_FRAME 60 DWARF_EH_FRAME
61 61
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 25c3ed594c54..d62e3cdab357 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -355,7 +355,7 @@ config SLUB_STATS
355config DEBUG_KMEMLEAK 355config DEBUG_KMEMLEAK
356 bool "Kernel memory leak detector" 356 bool "Kernel memory leak detector"
357 depends on DEBUG_KERNEL && EXPERIMENTAL && !MEMORY_HOTPLUG && \ 357 depends on DEBUG_KERNEL && EXPERIMENTAL && !MEMORY_HOTPLUG && \
358 (X86 || ARM || PPC || S390) 358 (X86 || ARM || PPC || S390 || SUPERH)
359 359
360 select DEBUG_FS if SYSFS 360 select DEBUG_FS if SYSFS
361 select STACKTRACE if STACKTRACE_SUPPORT 361 select STACKTRACE if STACKTRACE_SUPPORT