Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
xcap
xcap-capability-linux
Commits
3c62a2d3
Commit
3c62a2d3
authored
Feb 17, 2008
by
David S. Miller
Browse files
[SPARC64]: Always register a PROM based early console.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
f6095a51
Changes
3
Show whitespace changes
Inline
Side-by-side
arch/sparc64/kernel/prom.c
View file @
3c62a2d3
...
...
@@ -1716,7 +1716,6 @@ static void __init of_console_init(void)
of_console_device
=
dp
;
prom_printf
(
msg
,
of_console_path
);
printk
(
msg
,
of_console_path
);
}
...
...
arch/sparc64/kernel/setup.c
View file @
3c62a2d3
...
...
@@ -83,10 +83,10 @@ unsigned int boot_flags = 0;
/* Exported for mm/init.c:paging_init. */
unsigned
long
cmdline_memory_size
=
0
;
static
struct
console
prom_
debug
_console
=
{
.
name
=
"
debug
"
,
static
struct
console
prom_
early
_console
=
{
.
name
=
"
earlyprom
"
,
.
write
=
prom_console_write
,
.
flags
=
CON_PRINTBUFFER
,
.
flags
=
CON_PRINTBUFFER
|
CON_BOOT
,
.
index
=
-
1
,
};
...
...
@@ -112,8 +112,7 @@ static void __init process_switch(char c)
prom_halt
();
break
;
case
'p'
:
/* Use PROM debug console. */
register_console
(
&
prom_debug_console
);
/* Just ignore, this behavior is now the default. */
break
;
case
'P'
:
/* Force UltraSPARC-III P-Cache on. */
...
...
@@ -296,6 +295,9 @@ void __init setup_arch(char **cmdline_p)
*
cmdline_p
=
prom_getbootargs
();
strcpy
(
boot_command_line
,
*
cmdline_p
);
boot_flags_init
(
*
cmdline_p
);
register_console
(
&
prom_early_console
);
if
(
tlb_type
==
hypervisor
)
printk
(
"ARCH: SUN4V
\n
"
);
else
...
...
@@ -307,8 +309,6 @@ void __init setup_arch(char **cmdline_p)
conswitchp
=
&
prom_con
;
#endif
boot_flags_init
(
*
cmdline_p
);
idprom_init
();
if
(
!
root_flags
)
...
...
arch/sparc64/mm/init.c
View file @
3c62a2d3
...
...
@@ -618,9 +618,9 @@ static void __init inherit_prom_mappings(void)
read_obp_translations
();
/* Now fixup OBP's idea about where we really are mapped. */
prom_
print
f
(
"Remapping the kernel... "
);
print
k
(
"Remapping the kernel... "
);
remap_kernel
();
prom_
print
f
(
"done.
\n
"
);
print
k
(
"done.
\n
"
);
}
void
prom_world
(
int
enter
)
...
...
@@ -1414,7 +1414,7 @@ void __init paging_init(void)
zholes_size
);
}
prom_
print
f
(
"Booting Linux...
\n
"
);
print
k
(
"Booting Linux...
\n
"
);
central_probe
();
cpu_probe
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment