4767928394
My patch to make the early xmon logic work with earlier early param parsing (480f6f35a149802a94ad5c1a2673ed6ec8d2c158) breaks xmon=off. No one does this obviously as xmon rocks, but it should really work as documented. While fixing that it struck me that we could move the xmon param handling into xmon.c, and also consolidate the xmon_init()/do_early_xmon logic into xmon_setup(). This means xmon=early drops into xmon a little earlier on 32-bit, but it seems to work just fine. Tested on PSERIES and CLASSIC32. Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
23 lines
535 B
C
23 lines
535 B
C
#ifndef __ASM_POWERPC_XMON_H
|
|
#define __ASM_POWERPC_XMON_H
|
|
|
|
/*
|
|
* Copyrignt (C) 2006 IBM Corp
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* as published by the Free Software Foundation; either version
|
|
* 2 of the License, or (at your option) any later version.
|
|
*/
|
|
|
|
#ifdef __KERNEL__
|
|
|
|
#ifdef CONFIG_XMON
|
|
extern void xmon_setup(void);
|
|
#else
|
|
static inline void xmon_setup(void) { };
|
|
#endif
|
|
|
|
#endif /* __KERNEL __ */
|
|
#endif /* __ASM_POWERPC_XMON_H */
|