1 /* 2 * Copyright 2007, François Revol, revol@free.fr. 3 * Distributed under the terms of the MIT License. 4 * 5 * Copyright 2003-2006, Axel Dörfler, axeld@pinc-software.de. 6 * Distributed under the terms of the MIT License. 7 * 8 * Copyright 2001, Travis Geiselbrecht. All rights reserved. 9 * Distributed under the terms of the NewOS License. 10 */ 11 12 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> 18 19 #include <string.h> 20 21 22 void 23 arch_debug_remove_interrupt_handler(uint32 line) 24 { 25 } 26 27 28 void 29 arch_debug_install_interrupt_handlers(void) 30 { 31 } 32 33 34 char 35 arch_debug_blue_screen_getchar(void) 36 { 37 return M68KPlatform::Default()->BlueScreenGetChar(); 38 } 39 40 41 char 42 arch_debug_serial_getchar(void) 43 { 44 return M68KPlatform::Default()->SerialDebugGetChar(); 45 } 46 47 48 void 49 arch_debug_serial_putchar(const char c) 50 { 51 return M68KPlatform::Default()->SerialDebugPutChar(c); 52 } 53 54 55 void 56 arch_debug_serial_puts(const char *s) 57 { 58 while (*s != '\0') { 59 arch_debug_serial_putchar(*s); 60 s++; 61 } 62 } 63 64 65 void 66 arch_debug_serial_early_boot_message(const char *string) 67 { 68 // this function will only be called in fatal situations 69 } 70 71 72 status_t 73 arch_debug_console_init(kernel_args *args) 74 { 75 return M68KPlatform::Default()->InitSerialDebug(args); 76 } 77 78 79 status_t 80 arch_debug_console_init_settings(kernel_args *args) 81 { 82 return B_OK; 83 } 84 85