diff options
author | Paul Mackerras <paulus@samba.org> | 2005-11-08 06:55:08 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-11-08 06:55:08 -0500 |
commit | fca5dcd4835ed09bb1a48a355344aff7a25c76e0 (patch) | |
tree | b596fad4509d3208ef974b9e22b2326ecfd85b83 /arch/powerpc/kernel/setup_64.c | |
parent | 3825ac0ee66b50cb0208ee74796fe65f3040e67c (diff) |
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_64.c')
-rw-r--r-- | arch/powerpc/kernel/setup_64.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/arch/powerpc/kernel/setup_64.c b/arch/powerpc/kernel/setup_64.c index 0471e843b6c5..54c606f680b3 100644 --- a/arch/powerpc/kernel/setup_64.c +++ b/arch/powerpc/kernel/setup_64.c | |||
@@ -858,26 +858,6 @@ int check_legacy_ioport(unsigned long base_port) | |||
858 | } | 858 | } |
859 | EXPORT_SYMBOL(check_legacy_ioport); | 859 | EXPORT_SYMBOL(check_legacy_ioport); |
860 | 860 | ||
861 | #ifdef CONFIG_XMON | ||
862 | static int __init early_xmon(char *p) | ||
863 | { | ||
864 | /* ensure xmon is enabled */ | ||
865 | if (p) { | ||
866 | if (strncmp(p, "on", 2) == 0) | ||
867 | xmon_init(1); | ||
868 | if (strncmp(p, "off", 3) == 0) | ||
869 | xmon_init(0); | ||
870 | if (strncmp(p, "early", 5) != 0) | ||
871 | return 0; | ||
872 | } | ||
873 | xmon_init(1); | ||
874 | debugger(NULL); | ||
875 | |||
876 | return 0; | ||
877 | } | ||
878 | early_param("xmon", early_xmon); | ||
879 | #endif | ||
880 | |||
881 | void cpu_die(void) | 861 | void cpu_die(void) |
882 | { | 862 | { |
883 | if (ppc_md.cpu_die) | 863 | if (ppc_md.cpu_die) |