2a2e5c2df4
base generic code: * Remove unused verbosity code from mmio framework * Remove escape sequence end heuristic from LOG * replace Core_console with Core_log (no format specifiers) * move test/printf to test/log * remove `printf()` tests from the log test * check for exact match of the log test output base-fiasco: * remove unused Fiasco::print_l4_threadid function base-nova: * remove unused hexdump utility from core base-hw: * remove unused Kernel::Thread::_print_* debug utilities * always print resource summary of core during startup * remove Kernel::Ipc_node::pd_label (not used anymore) base*: * Turn `printf`,`PWRN`, etc. calls into their log equivalents Ref #1987 Fix #2119
31 lines
675 B
C++
31 lines
675 B
C++
/*
|
|
* \brief Kernel-specific core's 'log' backend
|
|
* \author Stefan Kalkowski
|
|
* \date 2016-10-10
|
|
*/
|
|
|
|
/*
|
|
* Copyright (C) 2016 Genode Labs GmbH
|
|
*
|
|
* This file is part of the Genode OS framework, which is distributed
|
|
* under the terms of the GNU General Public License version 2.
|
|
*/
|
|
|
|
/* core includes */
|
|
#include <core_log.h>
|
|
|
|
/* Genode includes */
|
|
#include <bios_data_area.h>
|
|
#include <drivers/uart_base.h>
|
|
|
|
void Genode::Core_log::out(char const c)
|
|
{
|
|
enum { CLOCK = 0, BAUDRATE = 115200 };
|
|
|
|
static X86_uart_base uart(Bios_data_area::singleton()->serial_port(),
|
|
CLOCK, BAUDRATE);
|
|
if (c == '\n')
|
|
uart.put_char('\r');
|
|
uart.put_char(c);
|
|
}
|