mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-18 23:28:29 +00:00
Supplement base/log.h with raw output function
This patch introduces the Genode::raw function that prints output directly via a low-level kernel mechanism, if available. On base-linux, it replaces the former 'raw_write_str' function. On base-hw, it replaces the former kernel/log.h interface. Fixes #2012
This commit is contained in:
committed by
Christian Helmuth
parent
ebdb1c6892
commit
2030ae678e
31
repos/base-foc/src/include/base/internal/raw_write_string.h
Normal file
31
repos/base-foc/src/include/base/internal/raw_write_string.h
Normal file
@ -0,0 +1,31 @@
|
||||
/*
|
||||
* \brief Kernel-specific raw-output back end
|
||||
* \author Norman Feske
|
||||
* \date 2016-03-08
|
||||
*/
|
||||
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef _INCLUDE__BASE__INTERNAL__RAW_WRITE_STRING_H_
|
||||
#define _INCLUDE__BASE__INTERNAL__RAW_WRITE_STRING_H_
|
||||
|
||||
/* Fiasco includes */
|
||||
namespace Fiasco {
|
||||
#include <l4/sys/kdebug.h>
|
||||
}
|
||||
|
||||
namespace Genode {
|
||||
|
||||
void raw_write_string(char const *str)
|
||||
{
|
||||
using namespace Fiasco;
|
||||
outstring(const_cast<char *>(str));
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* _INCLUDE__BASE__INTERNAL__RAW_WRITE_STRING_H_ */
|
Reference in New Issue
Block a user