diff options
author | Paul Mackerras <paulus@samba.org> | 2005-11-08 22:55:08 +1100 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-11-08 22:55:08 +1100 |
commit | fca5dcd4835ed09bb1a48a355344aff7a25c76e0 (patch) | |
tree | b596fad4509d3208ef974b9e22b2326ecfd85b83 /arch/powerpc/kernel/setup_32.c | |
parent | 3825ac0ee66b50cb0208ee74796fe65f3040e67c (diff) | |
download | linux-fca5dcd4835ed09bb1a48a355344aff7a25c76e0.tar.gz linux-fca5dcd4835ed09bb1a48a355344aff7a25c76e0.tar.bz2 linux-fca5dcd4835ed09bb1a48a355344aff7a25c76e0.zip |
powerpc: Simplify and clean up the xmon terminal I/O
This factors out the common bits of arch/powerpc/xmon/start_*.c into
a new nonstdio.c, and removes some stuff that was supposed to make
xmon's I/O routines somewhat stdio-like but was never used.
It also makes the parsing of the xmon= command line option common,
so that ppc32 can now use xmon={off,on,early} also.
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/setup_32.c')
-rw-r--r-- | arch/powerpc/kernel/setup_32.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/arch/powerpc/kernel/setup_32.c b/arch/powerpc/kernel/setup_32.c index 3af2631e3fab..0fbc73f7f828 100644 --- a/arch/powerpc/kernel/setup_32.c +++ b/arch/powerpc/kernel/setup_32.c @@ -303,14 +303,9 @@ void __init setup_arch(char **cmdline_p) pmac_feature_init(); /* New cool way */ #endif -#ifdef CONFIG_XMON - xmon_map_scc(); - if (strstr(cmd_line, "xmon")) { - xmon_init(1); - debugger(NULL); - } -#endif /* CONFIG_XMON */ - if ( ppc_md.progress ) ppc_md.progress("setup_arch: enter", 0x3eab); +#ifdef CONFIG_XMON_DEFAULT + xmon_init(1); +#endif #if defined(CONFIG_KGDB) if (ppc_md.kgdb_map_scc) |