parent
5323419430
commit
6c6a9d634e
1 changed files with 20 additions and 0 deletions
|
@ -29,6 +29,7 @@
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/bootinfo.h>
|
#include <asm/bootinfo.h>
|
||||||
#include <asm/mips-boards/prom.h>
|
#include <asm/mips-boards/prom.h>
|
||||||
|
#include <asm/gdb-stub.h>
|
||||||
|
|
||||||
#include <asm/ar7/ar7.h>
|
#include <asm/ar7/ar7.h>
|
||||||
|
|
||||||
|
@ -243,6 +244,13 @@ static void __init console_config(void)
|
||||||
if (strstr(prom_getcmdline(), "console="))
|
if (strstr(prom_getcmdline(), "console="))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
#ifdef CONFIG_KGDB
|
||||||
|
strcat(prom_getcmdline(), " console=kgdb");
|
||||||
|
prom_printf("Please connect GDB to this port\n");
|
||||||
|
kgdb_enabled = 1;
|
||||||
|
return;
|
||||||
|
#endif
|
||||||
|
|
||||||
if ((s = prom_getenv("modetty0"))) {
|
if ((s = prom_getenv("modetty0"))) {
|
||||||
baud = simple_strtoul(s, &p, 10);
|
baud = simple_strtoul(s, &p, 10);
|
||||||
s = p;
|
s = p;
|
||||||
|
@ -301,4 +309,16 @@ int prom_putchar(char c)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_KGDB
|
||||||
|
int putDebugChar(char c)
|
||||||
|
{
|
||||||
|
return prom_putchar(c);
|
||||||
|
}
|
||||||
|
|
||||||
|
char getDebugChar(void)
|
||||||
|
{
|
||||||
|
return prom_getchar();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
EXPORT_SYMBOL(prom_getenv);
|
EXPORT_SYMBOL(prom_getenv);
|
||||||
|
|
Loading…
Reference in a new issue