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_platform.h> 11 #include <arch/debug_console.h> 12 #include <boot/kernel_args.h> 13 #include <kernel.h> 14 #include <vm/vm.h> 15 16 #include <string.h> 17 18 19 void 20 arch_debug_remove_interrupt_handler(uint32 line) 21 { 22 } 23 24 25 void 26 arch_debug_install_interrupt_handlers(void) 27 { 28 } 29 30 31 char 32 arch_debug_blue_screen_getchar(void) 33 { 34 return 0; 35 } 36 37 38 char 39 arch_debug_serial_getchar(void) 40 { 41 return PPCPlatform::Default()->SerialDebugGetChar(); 42 } 43 44 45 void 46 arch_debug_serial_putchar(const char c) 47 { 48 return PPCPlatform::Default()->SerialDebugPutChar(c); 49 } 50 51 52 void 53 arch_debug_serial_puts(const char *s) 54 { 55 while (*s != '\0') { 56 arch_debug_serial_putchar(*s); 57 s++; 58 } 59 } 60 61 62 void 63 arch_debug_serial_early_boot_message(const char *string) 64 { 65 // this function will only be called in fatal situations 66 } 67 68 69 status_t 70 arch_debug_console_init(kernel_args *args) 71 { 72 return PPCPlatform::Default()->InitSerialDebug(args); 73 } 74 75 76 status_t 77 arch_debug_console_init_settings(kernel_args *args) 78 { 79 return B_OK; 80 } 81 82