diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-08-04 20:26:15 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-08-04 20:26:15 -0400 |
commit | 2e1e9212ed8c532c6b324de77d3cafef5d2bc846 (patch) | |
tree | 15097a99d03679f2c95ea2fdc0eb3c3ebcc474b8 /arch/sh/kernel/setup.c | |
parent | 2acb802b0c5485aedb46e23b2b45e49573454c09 (diff) | |
parent | f5663f5bded3364158e2d31904173cb1debc2ecd (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6: (29 commits)
sh: enable maple_keyb in dreamcast_defconfig.
SH2(A) cache update
nommu: Provide vmalloc_exec().
add addrespace definition for sh2a.
sh: Kill off ARCH_SUPPORTS_AOUT and remnants of a.out support.
sh: define GENERIC_HARDIRQS_NO__DO_IRQ.
sh: define GENERIC_LOCKBREAK.
sh: Save NUMA node data in vmcore for crash dumps.
sh: module_alloc() should be using vmalloc_exec().
sh: Fix up __bug_table handling in module loader.
sh: Add documentation and integrate into docbook build.
sh: Fix up broken kerneldoc comments.
maple: Kill useless private_data pointer.
maple: Clean up maple_driver_register/unregister routines.
input: Clean up maple keyboard driver
maple: allow removal and reinsertion of keyboard driver module
sh: /proc/asids depends on MMU.
arch/sh/boards/mach-se/7343/irq.c: removed duplicated #include
arch/sh/boards/board-ap325rxa.c: removed duplicated #include
sh/boards/Makefile typo fix
...
Diffstat (limited to 'arch/sh/kernel/setup.c')
-rw-r--r-- | arch/sh/kernel/setup.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/sh/kernel/setup.c b/arch/sh/kernel/setup.c index 6339d0c95715..a35207655e7b 100644 --- a/arch/sh/kernel/setup.c +++ b/arch/sh/kernel/setup.c | |||
@@ -25,6 +25,7 @@ | |||
25 | #include <linux/smp.h> | 25 | #include <linux/smp.h> |
26 | #include <linux/err.h> | 26 | #include <linux/err.h> |
27 | #include <linux/debugfs.h> | 27 | #include <linux/debugfs.h> |
28 | #include <linux/crash_dump.h> | ||
28 | #include <asm/uaccess.h> | 29 | #include <asm/uaccess.h> |
29 | #include <asm/io.h> | 30 | #include <asm/io.h> |
30 | #include <asm/page.h> | 31 | #include <asm/page.h> |
@@ -286,6 +287,25 @@ static void __init setup_memory(void) | |||
286 | extern void __init setup_memory(void); | 287 | extern void __init setup_memory(void); |
287 | #endif | 288 | #endif |
288 | 289 | ||
290 | /* | ||
291 | * Note: elfcorehdr_addr is not just limited to vmcore. It is also used by | ||
292 | * is_kdump_kernel() to determine if we are booting after a panic. Hence | ||
293 | * ifdef it under CONFIG_CRASH_DUMP and not CONFIG_PROC_VMCORE. | ||
294 | */ | ||
295 | #ifdef CONFIG_CRASH_DUMP | ||
296 | /* elfcorehdr= specifies the location of elf core header | ||
297 | * stored by the crashed kernel. | ||
298 | */ | ||
299 | static int __init parse_elfcorehdr(char *arg) | ||
300 | { | ||
301 | if (!arg) | ||
302 | return -EINVAL; | ||
303 | elfcorehdr_addr = memparse(arg, &arg); | ||
304 | return 0; | ||
305 | } | ||
306 | early_param("elfcorehdr", parse_elfcorehdr); | ||
307 | #endif | ||
308 | |||
289 | void __init setup_arch(char **cmdline_p) | 309 | void __init setup_arch(char **cmdline_p) |
290 | { | 310 | { |
291 | enable_mmu(); | 311 | enable_mmu(); |