2 * Copyright 2003-2006, Axel Dörfler, axeld@pinc-software.de.
3 * Distributed under the terms of the MIT License.
5 * Copyright 2001, Travis Geiselbrecht. All rights reserved.
6 * Distributed under the terms of the NewOS License.
10 #include <arch_platform.h>
11 #include <arch/debug_console.h>
12 #include <boot/kernel_args.h>
20 arch_debug_remove_interrupt_handler(uint32 line
)
26 arch_debug_install_interrupt_handlers(void)
32 arch_debug_blue_screen_try_getchar(void)
34 // TODO: Implement correctly!
35 return arch_debug_blue_screen_getchar();
40 arch_debug_blue_screen_getchar(void)
47 arch_debug_serial_try_getchar(void)
49 // TODO: Implement correctly!
50 return arch_debug_serial_getchar();
55 arch_debug_serial_getchar(void)
57 return PPCPlatform::Default()->SerialDebugGetChar();
62 arch_debug_serial_putchar(const char c
)
64 return PPCPlatform::Default()->SerialDebugPutChar(c
);
69 arch_debug_serial_puts(const char *s
)
72 arch_debug_serial_putchar(*s
);
79 arch_debug_serial_early_boot_message(const char *string
)
81 // this function will only be called in fatal situations
86 arch_debug_console_init(kernel_args
*args
)
88 return PPCPlatform::Default()->InitSerialDebug(args
);
93 arch_debug_console_init_settings(kernel_args
*args
)