vfs: check userland buffers before reading them.
[haiku.git] / src / system / kernel / arch / m68k / arch_debug_console.cpp
blob41fc9e156f04c5d695f21c6e4789dbc687b501a7
1 /*
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>
16 #include <kernel.h>
17 #include <vm/vm.h>
19 #include <string.h>
22 void
23 arch_debug_remove_interrupt_handler(uint32 line)
28 void
29 arch_debug_install_interrupt_handlers(void)
34 int
35 arch_debug_blue_screen_try_getchar(void)
37 // TODO: Implement correctly!
38 return arch_debug_blue_screen_getchar();
42 char
43 arch_debug_blue_screen_getchar(void)
45 return M68KPlatform::Default()->BlueScreenGetChar();
49 int
50 arch_debug_serial_try_getchar(void)
52 // TODO: Implement correctly!
53 return arch_debug_serial_getchar();
57 char
58 arch_debug_serial_getchar(void)
60 return M68KPlatform::Default()->SerialDebugGetChar();
64 void
65 arch_debug_serial_putchar(const char c)
67 return M68KPlatform::Default()->SerialDebugPutChar(c);
71 void
72 arch_debug_serial_puts(const char *s)
74 while (*s != '\0') {
75 arch_debug_serial_putchar(*s);
76 s++;
81 void
82 arch_debug_serial_early_boot_message(const char *string)
84 // this function will only be called in fatal situations
88 status_t
89 arch_debug_console_init(kernel_args *args)
91 return M68KPlatform::Default()->InitSerialDebug(args);
95 status_t
96 arch_debug_console_init_settings(kernel_args *args)
98 return B_OK;