2 * This file is part of the coreboot project.
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; version 2 of
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
20 #include <console/console.h>
21 #include <console/vtxprintf.h>
24 static void console_tx_byte(unsigned char byte)
27 uart8250_tx_byte(CONFIG_TTYS0_BASE, '\r');
29 uart8250_tx_byte(CONFIG_TTYS0_BASE, byte);
32 int do_printk(int msg_level, const char *fmt, ...)
37 if (msg_level > console_loglevel) {
42 i = vtxprintf(console_tx_byte, fmt, args);