1 /* 2 * Copyright 2003-2005, 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.h> 15 16 #include <string.h> 17 18 19 char 20 arch_debug_blue_screen_getchar(void) 21 { 22 return 0; 23 } 24 25 26 char 27 arch_debug_serial_getchar(void) 28 { 29 return PPCPlatform::Default()->SerialDebugGetChar(); 30 } 31 32 33 void 34 arch_debug_serial_putchar(const char c) 35 { 36 return PPCPlatform::Default()->SerialDebugPutChar(c); 37 } 38 39 40 void 41 arch_debug_serial_puts(const char *s) 42 { 43 while (*s != '\0') { 44 arch_debug_serial_putchar(*s); 45 s++; 46 } 47 } 48 49 50 void 51 arch_debug_serial_early_boot_message(const char *string) 52 { 53 // this function will only be called in fatal situations 54 } 55 56 57 status_t 58 arch_debug_console_init(kernel_args *args) 59 { 60 return PPCPlatform::Default()->InitSerialDebug(args); 61 } 62 63 64 status_t 65 arch_debug_console_init_settings(kernel_args *args) 66 { 67 return B_OK; 68 } 69 70