1 /* 2 * Copyright 2003-2006, Axel Dörfler, axeld@pinc-software.de. 3 * Distributed under the terms of the MIT License. 4 * 5 * Copyright 2001, Travis Geiselbrecht. All rights reserved. 6 * Distributed under the terms of the NewOS License. 7 */ 8 9 10 #include <arch/debug_console.h> 11 #include <boot/kernel_args.h> 12 #include <kernel.h> 13 #include <vm/vm.h> 14 15 #include <string.h> 16 17 18 void 19 arch_debug_remove_interrupt_handler(uint32 line) 20 { 21 } 22 23 24 void 25 arch_debug_install_interrupt_handlers(void) 26 { 27 } 28 29 30 int 31 arch_debug_blue_screen_try_getchar(void) 32 { 33 return 0; 34 } 35 36 37 char 38 arch_debug_blue_screen_getchar(void) 39 { 40 return 0; 41 } 42 43 44 int 45 arch_debug_serial_try_getchar(void) 46 { 47 // TODO: Implement correctly! 48 return arch_debug_serial_getchar(); 49 } 50 51 52 char 53 arch_debug_serial_getchar(void) 54 { 55 return 0; 56 } 57 58 59 void 60 arch_debug_serial_putchar(const char c) 61 { 62 } 63 64 65 void 66 arch_debug_serial_puts(const char *s) 67 { 68 while (*s != '\0') { 69 arch_debug_serial_putchar(*s); 70 s++; 71 } 72 } 73 74 75 void 76 arch_debug_serial_early_boot_message(const char *string) 77 { 78 // this function will only be called in fatal situations 79 } 80 81 82 status_t 83 arch_debug_console_init(kernel_args *args) 84 { 85 return B_OK; 86 } 87 88 89 status_t 90 arch_debug_console_init_settings(kernel_args *args) 91 { 92 return B_OK; 93 } 94 95 96