aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/setup_64.c
diff options
context:
space:
mode:
authorMichael Ellerman <michael@ellerman.id.au>2006-01-10 19:54:08 -0500
committerPaul Mackerras <paulus@samba.org>2006-01-10 22:48:13 -0500
commitbf6a7112bda99aadd6675526423a96be6b356a3d (patch)
treee3a0e144ac933e7f35d6fa5f95bc0e0fb0ba6309 /arch/powerpc/kernel/setup_64.c
parentf481f1edee77b3d623457685add1c6b507c25d6f (diff)
[PATCH] powerpc: Early debugging support for iSeries
Connect iSeries up to the standard early debugging infrastructure. To actually use this you need to enable the iSeries early debugging in setup_64.c. Then after the messages are logged hit Ctrl-x Ctrl-x on your console to dump the Hypervisor console buffer. Signed-off-by: Michael Ellerman <michael@ellerman.id.au> 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.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/arch/powerpc/kernel/setup_64.c b/arch/powerpc/kernel/setup_64.c
index c4b76961d6de..177d8249078d 100644
--- a/arch/powerpc/kernel/setup_64.c
+++ b/arch/powerpc/kernel/setup_64.c
@@ -75,22 +75,26 @@
75 * but your kernel will not boot on anything else if you do so 75 * but your kernel will not boot on anything else if you do so
76 */ 76 */
77 77
78/* This one is for use on LPAR machines that support an HVC console 78/* For use on LPAR machines that support an HVC console on vterm 0 */
79 * on vterm 0
80 */
81extern void udbg_init_debug_lpar(void); 79extern void udbg_init_debug_lpar(void);
82/* This one is for use on Apple G5 machines 80
83 */ 81/* This one is for use on Apple G5 machines */
84extern void udbg_init_pmac_realmode(void); 82extern void udbg_init_pmac_realmode(void);
83
85/* That's RTAS panel debug */ 84/* That's RTAS panel debug */
86extern void call_rtas_display_status_delay(unsigned char c); 85extern void call_rtas_display_status_delay(unsigned char c);
86
87/* Here's maple real mode debug */ 87/* Here's maple real mode debug */
88extern void udbg_init_maple_realmode(void); 88extern void udbg_init_maple_realmode(void);
89 89
90/* For iSeries - hit Ctrl-x Ctrl-x to see the output */
91extern void udbg_init_iseries(void);
92
90#define EARLY_DEBUG_INIT() do {} while(0) 93#define EARLY_DEBUG_INIT() do {} while(0)
91 94
92#if 0 95#if 0
93#define EARLY_DEBUG_INIT() udbg_init_debug_lpar() 96#define EARLY_DEBUG_INIT() udbg_init_debug_lpar()
97#define EARLY_DEBUG_INIT() udbg_init_iseries()
94#define EARLY_DEBUG_INIT() udbg_init_maple_realmode() 98#define EARLY_DEBUG_INIT() udbg_init_maple_realmode()
95#define EARLY_DEBUG_INIT() udbg_init_pmac_realmode() 99#define EARLY_DEBUG_INIT() udbg_init_pmac_realmode()
96#define EARLY_DEBUG_INIT() \ 100#define EARLY_DEBUG_INIT() \