* For ARM, we now always read from the serial for KDL input.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38994 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -34,32 +34,21 @@ arch_debug_install_interrupt_handlers(void)
|
|||||||
char
|
char
|
||||||
arch_debug_blue_screen_getchar(void)
|
arch_debug_blue_screen_getchar(void)
|
||||||
{
|
{
|
||||||
#warning ARM WRITEME
|
return arch_debug_serial_getchar();
|
||||||
return 0;
|
|
||||||
//M68KPlatform::Default()->BlueScreenGetChar();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
char
|
char
|
||||||
arch_debug_serial_getchar(void)
|
arch_debug_serial_getchar(void)
|
||||||
{
|
{
|
||||||
#warning ARM WRITEME
|
return uart_getc(uart_debug_port(), FALSE);
|
||||||
return uart_getc(0,FALSE);
|
|
||||||
// return 0;
|
|
||||||
//M68KPlatform::Default()->SerialDebugGetChar();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
arch_debug_serial_putchar(const char c)
|
arch_debug_serial_putchar(const char c)
|
||||||
{
|
{
|
||||||
//uart_putc(0,c);
|
uart_putc(uart_debug_port(), c);
|
||||||
//uart_putc(1,c);
|
|
||||||
uart_putc(0,c);
|
|
||||||
#warning ARM WRITEME
|
|
||||||
|
|
||||||
// return 0;
|
|
||||||
//M68KPlatform::Default()->SerialDebugPutChar(c);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -77,22 +66,16 @@ void
|
|||||||
arch_debug_serial_early_boot_message(const char *string)
|
arch_debug_serial_early_boot_message(const char *string)
|
||||||
{
|
{
|
||||||
// this function will only be called in fatal situations
|
// this function will only be called in fatal situations
|
||||||
|
arch_debug_serial_puts(string);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
status_t
|
status_t
|
||||||
arch_debug_console_init(kernel_args *args)
|
arch_debug_console_init(kernel_args *args)
|
||||||
{
|
{
|
||||||
|
uart_init_early();
|
||||||
|
|
||||||
uart_init_early();
|
return B_OK;
|
||||||
uart_init();//todo
|
|
||||||
uart_init_port(0,9600);
|
|
||||||
uart_init_port(1,9600);
|
|
||||||
uart_init_port(2,9600);
|
|
||||||
#warning ARM WRITEME
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
//M68KPlatform::Default()->InitSerialDebug(args);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user