base-nova: Synchronize output to serial console with the hypervisor.

This commit is contained in:
Michael Mueller
2024-01-30 17:56:51 +01:00
parent 1fd735989f
commit e7d6363362
3 changed files with 19 additions and 0 deletions

View File

@@ -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();
}

View File

@@ -31,6 +31,10 @@ namespace Genode {
struct Genode::Core_log
{
void acquire();
void release();
void out(char const c);
void output(char const * str);