1 /* 2 * Copyright 2019 Haiku, Inc. All Rights Reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5 #include <arch/debug_console.h> 6 #include <arch/generic/debug_uart.h> 7 #include <boot/kernel_args.h> 8 #include <kernel.h> 9 #include <vm/vm.h> 10 #include <string.h> 11 12 13 void 14 arch_debug_remove_interrupt_handler(uint32 line) 15 { 16 } 17 18 19 void 20 arch_debug_install_interrupt_handlers(void) 21 { 22 } 23 24 25 int 26 arch_debug_blue_screen_try_getchar(void) 27 { 28 return -1; 29 } 30 31 32 char 33 arch_debug_blue_screen_getchar(void) 34 { 35 return -1; 36 } 37 38 39 int 40 arch_debug_serial_try_getchar(void) 41 { 42 return -1; 43 } 44 45 46 char 47 arch_debug_serial_getchar(void) 48 { 49 return -1; 50 } 51 52 53 void 54 arch_debug_serial_putchar(const char c) 55 { 56 } 57 58 59 void 60 arch_debug_serial_puts(const char *s) 61 { 62 while (*s != '\0') { 63 char ch = *s; 64 if (ch == '\n') { 65 arch_debug_serial_putchar('\r'); 66 arch_debug_serial_putchar('\n'); 67 } else if (ch != '\r') 68 arch_debug_serial_putchar(ch); 69 s++; 70 } 71 } 72 73 74 void 75 arch_debug_serial_early_boot_message(const char *string) 76 { 77 } 78 79 80 status_t 81 arch_debug_console_init(kernel_args *args) 82 { 83 return B_OK; 84 } 85 86 87 status_t 88 arch_debug_console_init_settings(kernel_args *args) 89 { 90 return B_OK; 91 } 92