Commit b15fac8d authored by David S. Miller's avatar David S. Miller

SPARC: Move sun_do_break from serial layer into arch code.

parent 01a42780
...@@ -690,3 +690,14 @@ struct seq_operations cpuinfo_op = { ...@@ -690,3 +690,14 @@ struct seq_operations cpuinfo_op = {
.stop = c_stop, .stop = c_stop,
.show = show_cpuinfo, .show = show_cpuinfo,
}; };
void sun_do_break(void)
{
if (!stop_a_enabled)
return;
printk("\n");
flush_user_windows();
prom_cmdline();
}
...@@ -362,9 +362,8 @@ void VISenter(void); ...@@ -362,9 +362,8 @@ void VISenter(void);
/* RAID code needs this */ /* RAID code needs this */
EXPORT_SYMBOL_NOVERS(VISenter); EXPORT_SYMBOL_NOVERS(VISenter);
extern void batten_down_hatches(void);
/* for input/keybdev */ /* for input/keybdev */
EXPORT_SYMBOL(batten_down_hatches); EXPORT_SYMBOL(sun_do_break);
#ifdef CONFIG_DEBUG_BUGVERBOSE #ifdef CONFIG_DEBUG_BUGVERBOSE
EXPORT_SYMBOL(do_BUG); EXPORT_SYMBOL(do_BUG);
......
...@@ -141,26 +141,6 @@ sunserial_console_termios(struct console *con) ...@@ -141,26 +141,6 @@ sunserial_console_termios(struct console *con)
EXPORT_SYMBOL(sunserial_console_termios); EXPORT_SYMBOL(sunserial_console_termios);
void
sun_do_break(void)
{
if (!stop_a_enabled)
return;
printk("\n");
flush_user_windows();
#ifndef CONFIG_SPARC64
if ((unsigned long)linux_dbvec >= DEBUG_FIRSTVADDR &&
(unsigned long)linux_dbvec <= DEBUG_LASTVADDR)
sp_enter_debugger();
else
#endif
prom_cmdline();
}
EXPORT_SYMBOL(sun_do_break);
/* Sun serial MOUSE auto baud rate detection. */ /* Sun serial MOUSE auto baud rate detection. */
static struct mouse_baud_cflag { static struct mouse_baud_cflag {
int baud; int baud;
......
...@@ -19,8 +19,6 @@ ...@@ -19,8 +19,6 @@
#define SUNKBD_UP 0x80 #define SUNKBD_UP 0x80
#define SUNKBD_A 0x4d #define SUNKBD_A 0x4d
extern void sun_do_break(void);
extern unsigned int suncore_mouse_baud_cflag_next(unsigned int, int *); extern unsigned int suncore_mouse_baud_cflag_next(unsigned int, int *);
extern int suncore_mouse_baud_detection(unsigned char, int); extern int suncore_mouse_baud_detection(unsigned char, int);
......
...@@ -120,6 +120,8 @@ enum sparc_cpu { ...@@ -120,6 +120,8 @@ enum sparc_cpu {
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
extern void sun_do_break(void);
extern void synchronize_user_stack(void); extern void synchronize_user_stack(void);
extern void __flushw_user(void); extern void __flushw_user(void);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment