diff options
author | David S. Miller <davem@davemloft.net> | 2008-02-23 23:38:20 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-02-23 23:38:20 -0500 |
commit | 8d3c202be23c5a915f7053ebd4e96f44700c6a62 (patch) | |
tree | e0f017aff86d3ad0b858fe85f44e11096087ed00 /arch/sparc64/kernel/setup.c | |
parent | 1b04ab4597725f75f94942da9aa40daa7b9a4bd9 (diff) | |
parent | 038eb0ea04b245351be34b0ae76b55eee4603989 (diff) |
Merge branch 'master' of ../linux-2.6/
Diffstat (limited to 'arch/sparc64/kernel/setup.c')
-rw-r--r-- | arch/sparc64/kernel/setup.c | 29 |
1 files changed, 7 insertions, 22 deletions
diff --git a/arch/sparc64/kernel/setup.c b/arch/sparc64/kernel/setup.c index 5964d8653ade..d036dbe72864 100644 --- a/arch/sparc64/kernel/setup.c +++ b/arch/sparc64/kernel/setup.c | |||
@@ -68,33 +68,22 @@ struct screen_info screen_info = { | |||
68 | 16 /* orig-video-points */ | 68 | 16 /* orig-video-points */ |
69 | }; | 69 | }; |
70 | 70 | ||
71 | void (*prom_palette)(int); | ||
72 | void (*prom_keyboard)(void); | ||
73 | |||
74 | static void | 71 | static void |
75 | prom_console_write(struct console *con, const char *s, unsigned n) | 72 | prom_console_write(struct console *con, const char *s, unsigned n) |
76 | { | 73 | { |
77 | prom_write(s, n); | 74 | prom_write(s, n); |
78 | } | 75 | } |
79 | 76 | ||
80 | unsigned int boot_flags = 0; | ||
81 | #define BOOTME_DEBUG 0x1 | ||
82 | |||
83 | /* Exported for mm/init.c:paging_init. */ | 77 | /* Exported for mm/init.c:paging_init. */ |
84 | unsigned long cmdline_memory_size = 0; | 78 | unsigned long cmdline_memory_size = 0; |
85 | 79 | ||
86 | static struct console prom_debug_console = { | 80 | static struct console prom_early_console = { |
87 | .name = "debug", | 81 | .name = "earlyprom", |
88 | .write = prom_console_write, | 82 | .write = prom_console_write, |
89 | .flags = CON_PRINTBUFFER, | 83 | .flags = CON_PRINTBUFFER | CON_BOOT, |
90 | .index = -1, | 84 | .index = -1, |
91 | }; | 85 | }; |
92 | 86 | ||
93 | /* XXX Implement this at some point... */ | ||
94 | void kernel_enter_debugger(void) | ||
95 | { | ||
96 | } | ||
97 | |||
98 | /* | 87 | /* |
99 | * Process kernel command line switches that are specific to the | 88 | * Process kernel command line switches that are specific to the |
100 | * SPARC or that require special low-level processing. | 89 | * SPARC or that require special low-level processing. |
@@ -103,8 +92,6 @@ static void __init process_switch(char c) | |||
103 | { | 92 | { |
104 | switch (c) { | 93 | switch (c) { |
105 | case 'd': | 94 | case 'd': |
106 | boot_flags |= BOOTME_DEBUG; | ||
107 | break; | ||
108 | case 's': | 95 | case 's': |
109 | break; | 96 | break; |
110 | case 'h': | 97 | case 'h': |
@@ -112,8 +99,7 @@ static void __init process_switch(char c) | |||
112 | prom_halt(); | 99 | prom_halt(); |
113 | break; | 100 | break; |
114 | case 'p': | 101 | case 'p': |
115 | /* Use PROM debug console. */ | 102 | /* Just ignore, this behavior is now the default. */ |
116 | register_console(&prom_debug_console); | ||
117 | break; | 103 | break; |
118 | case 'P': | 104 | case 'P': |
119 | /* Force UltraSPARC-III P-Cache on. */ | 105 | /* Force UltraSPARC-III P-Cache on. */ |
@@ -168,8 +154,6 @@ static void __init boot_flags_init(char *commands) | |||
168 | } | 154 | } |
169 | } | 155 | } |
170 | 156 | ||
171 | extern void panic_setup(char *, int *); | ||
172 | |||
173 | extern unsigned short root_flags; | 157 | extern unsigned short root_flags; |
174 | extern unsigned short root_dev; | 158 | extern unsigned short root_dev; |
175 | extern unsigned short ram_flags; | 159 | extern unsigned short ram_flags; |
@@ -296,6 +280,9 @@ void __init setup_arch(char **cmdline_p) | |||
296 | *cmdline_p = prom_getbootargs(); | 280 | *cmdline_p = prom_getbootargs(); |
297 | strcpy(boot_command_line, *cmdline_p); | 281 | strcpy(boot_command_line, *cmdline_p); |
298 | 282 | ||
283 | boot_flags_init(*cmdline_p); | ||
284 | register_console(&prom_early_console); | ||
285 | |||
299 | if (tlb_type == hypervisor) | 286 | if (tlb_type == hypervisor) |
300 | printk("ARCH: SUN4V\n"); | 287 | printk("ARCH: SUN4V\n"); |
301 | else | 288 | else |
@@ -307,8 +294,6 @@ void __init setup_arch(char **cmdline_p) | |||
307 | conswitchp = &prom_con; | 294 | conswitchp = &prom_con; |
308 | #endif | 295 | #endif |
309 | 296 | ||
310 | boot_flags_init(*cmdline_p); | ||
311 | |||
312 | idprom_init(); | 297 | idprom_init(); |
313 | 298 | ||
314 | if (!root_flags) | 299 | if (!root_flags) |