headers/bsd: Add sys/queue.h.
[haiku.git] / src / system / kernel / arch / ppc / arch_debug_console.cpp
bloba8318d59882d0f58f24d4c64804d0a53029c48a6
1 /*
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.
7 */
10 #include <arch_platform.h>
11 #include <arch/debug_console.h>
12 #include <boot/kernel_args.h>
13 #include <kernel.h>
14 #include <vm/vm.h>
16 #include <string.h>
19 void
20 arch_debug_remove_interrupt_handler(uint32 line)
25 void
26 arch_debug_install_interrupt_handlers(void)
31 int
32 arch_debug_blue_screen_try_getchar(void)
34 // TODO: Implement correctly!
35 return arch_debug_blue_screen_getchar();
39 char
40 arch_debug_blue_screen_getchar(void)
42 return 0;
46 int
47 arch_debug_serial_try_getchar(void)
49 // TODO: Implement correctly!
50 return arch_debug_serial_getchar();
54 char
55 arch_debug_serial_getchar(void)
57 return PPCPlatform::Default()->SerialDebugGetChar();
61 void
62 arch_debug_serial_putchar(const char c)
64 return PPCPlatform::Default()->SerialDebugPutChar(c);
68 void
69 arch_debug_serial_puts(const char *s)
71 while (*s != '\0') {
72 arch_debug_serial_putchar(*s);
73 s++;
78 void
79 arch_debug_serial_early_boot_message(const char *string)
81 // this function will only be called in fatal situations
85 status_t
86 arch_debug_console_init(kernel_args *args)
88 return PPCPlatform::Default()->InitSerialDebug(args);
92 status_t
93 arch_debug_console_init_settings(kernel_args *args)
95 return B_OK;