2 * Copyright 2007, François Revol, revol@free.fr.
3 * Distributed under the terms of the MIT License.
5 * Copyright 2003-2006, Axel Dörfler, axeld@pinc-software.de.
6 * Distributed under the terms of the MIT License.
8 * Copyright 2001, Travis Geiselbrecht. All rights reserved.
9 * Distributed under the terms of the NewOS License.
13 #include <arch_platform.h>
14 #include <arch/debug_console.h>
15 #include <boot/kernel_args.h>
23 arch_debug_remove_interrupt_handler(uint32 line
)
29 arch_debug_install_interrupt_handlers(void)
35 arch_debug_blue_screen_try_getchar(void)
37 // TODO: Implement correctly!
38 return arch_debug_blue_screen_getchar();
43 arch_debug_blue_screen_getchar(void)
45 return M68KPlatform::Default()->BlueScreenGetChar();
50 arch_debug_serial_try_getchar(void)
52 // TODO: Implement correctly!
53 return arch_debug_serial_getchar();
58 arch_debug_serial_getchar(void)
60 return M68KPlatform::Default()->SerialDebugGetChar();
65 arch_debug_serial_putchar(const char c
)
67 return M68KPlatform::Default()->SerialDebugPutChar(c
);
72 arch_debug_serial_puts(const char *s
)
75 arch_debug_serial_putchar(*s
);
82 arch_debug_serial_early_boot_message(const char *string
)
84 // this function will only be called in fatal situations
89 arch_debug_console_init(kernel_args
*args
)
91 return M68KPlatform::Default()->InitSerialDebug(args
);
96 arch_debug_console_init_settings(kernel_args
*args
)