mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01:00
base-nova: Synchronize output to serial console with the hypervisor.
This commit is contained in:
@@ -45,8 +45,10 @@ void Genode::init_core_log(Core_log_range const &r) { range = r; }
|
||||
|
||||
void Genode::Core_log::output(char const * str)
|
||||
{
|
||||
acquire();
|
||||
for (unsigned i = 0; i < Genode::strlen(str); i++) {
|
||||
out(str[i]);
|
||||
out_mem(str[i]);
|
||||
}
|
||||
release();
|
||||
}
|
||||
|
||||
@@ -31,6 +31,10 @@ namespace Genode {
|
||||
|
||||
struct Genode::Core_log
|
||||
{
|
||||
void acquire();
|
||||
|
||||
void release();
|
||||
|
||||
void out(char const c);
|
||||
|
||||
void output(char const * str);
|
||||
|
||||
Reference in New Issue
Block a user