diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2007-02-13 00:57:21 -0500 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2007-02-13 00:57:21 -0500 |
commit | 54c66f6d781e03dc0b23956234963c4911e6d1c0 (patch) | |
tree | 40619a66ae6d8703a57bf681d087ffeabbffd346 /arch/um/kernel/um_arch.c | |
parent | 8ce0a7df6e6117d8814e976d4b7ce6a6b2c9cf93 (diff) | |
parent | 17e0e27020d028a790d97699aff85a43af5be472 (diff) |
Merge branch 'master' into 85xx
Diffstat (limited to 'arch/um/kernel/um_arch.c')
-rw-r--r-- | arch/um/kernel/um_arch.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/arch/um/kernel/um_arch.c b/arch/um/kernel/um_arch.c index 66f43c906821..89c6dba731f8 100644 --- a/arch/um/kernel/um_arch.c +++ b/arch/um/kernel/um_arch.c | |||
@@ -30,7 +30,6 @@ | |||
30 | #include "kern.h" | 30 | #include "kern.h" |
31 | #include "mem_user.h" | 31 | #include "mem_user.h" |
32 | #include "mem.h" | 32 | #include "mem.h" |
33 | #include "umid.h" | ||
34 | #include "initrd.h" | 33 | #include "initrd.h" |
35 | #include "init.h" | 34 | #include "init.h" |
36 | #include "os.h" | 35 | #include "os.h" |
@@ -44,9 +43,9 @@ | |||
44 | #define DEFAULT_COMMAND_LINE "root=98:0" | 43 | #define DEFAULT_COMMAND_LINE "root=98:0" |
45 | 44 | ||
46 | /* Changed in linux_main and setup_arch, which run before SMP is started */ | 45 | /* Changed in linux_main and setup_arch, which run before SMP is started */ |
47 | static char command_line[COMMAND_LINE_SIZE] = { 0 }; | 46 | static char __initdata command_line[COMMAND_LINE_SIZE] = { 0 }; |
48 | 47 | ||
49 | static void add_arg(char *arg) | 48 | static void __init add_arg(char *arg) |
50 | { | 49 | { |
51 | if (strlen(command_line) + strlen(arg) + 1 > COMMAND_LINE_SIZE) { | 50 | if (strlen(command_line) + strlen(arg) + 1 > COMMAND_LINE_SIZE) { |
52 | printf("add_arg: Too many command line arguments!\n"); | 51 | printf("add_arg: Too many command line arguments!\n"); |
@@ -331,7 +330,7 @@ EXPORT_SYMBOL(end_iomem); | |||
331 | 330 | ||
332 | extern char __binary_start; | 331 | extern char __binary_start; |
333 | 332 | ||
334 | int linux_main(int argc, char **argv) | 333 | int __init linux_main(int argc, char **argv) |
335 | { | 334 | { |
336 | unsigned long avail, diff; | 335 | unsigned long avail, diff; |
337 | unsigned long virtmem_size, max_physmem; | 336 | unsigned long virtmem_size, max_physmem; |
@@ -482,7 +481,7 @@ void __init setup_arch(char **cmdline_p) | |||
482 | atomic_notifier_chain_register(&panic_notifier_list, | 481 | atomic_notifier_chain_register(&panic_notifier_list, |
483 | &panic_exit_notifier); | 482 | &panic_exit_notifier); |
484 | paging_init(); | 483 | paging_init(); |
485 | strlcpy(saved_command_line, command_line, COMMAND_LINE_SIZE); | 484 | strlcpy(boot_command_line, command_line, COMMAND_LINE_SIZE); |
486 | *cmdline_p = command_line; | 485 | *cmdline_p = command_line; |
487 | setup_hostinfo(); | 486 | setup_hostinfo(); |
488 | } | 487 | } |