1 // Copyright 2016 The Fuchsia Authors 2 // Copyright (c) 2008-2015 Travis Geiselbrecht 3 // 4 // Use of this source code is governed by a MIT-style 5 // license that can be found in the LICENSE file or at 6 // https://opensource.org/licenses/MIT 7 8 #include <debug.h> 9 #include <trace.h> 10 #include <zircon/compiler.h> 11 12 /* Default implementation of panic time getc/putc. 13 * Just calls through to the underlying dputc/dgetc implementation 14 * unless the platform overrides it. 15 */ platform_pputc(char c)16__WEAK void platform_pputc(char c) { 17 return platform_dputc(c); 18 } 19 platform_pgetc(char * c,bool wait)20__WEAK int platform_pgetc(char* c, bool wait) { 21 return platform_dgetc(c, wait); 22 } 23