mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-30 02:28:54 +00:00
vbox4/5: remove printf
This commit is contained in:
parent
7df58930e2
commit
b7da62cd55
@ -45,6 +45,40 @@ namespace Vmm {
|
||||
|
||||
*(Utcb_backup *)Thread::myself()->utcb() = utcb_backup;
|
||||
}
|
||||
|
||||
template <typename... ARGS>
|
||||
void warning(ARGS... args)
|
||||
{
|
||||
struct Utcb_backup { char buf[Nova::Utcb::size()]; };
|
||||
|
||||
static Lock lock;
|
||||
static Utcb_backup utcb_backup;
|
||||
|
||||
Lock::Guard guard(lock);
|
||||
|
||||
utcb_backup = *(Utcb_backup *)Thread::myself()->utcb();
|
||||
|
||||
Genode::warning("VMM: ", args...);
|
||||
|
||||
*(Utcb_backup *)Thread::myself()->utcb() = utcb_backup;
|
||||
}
|
||||
|
||||
template <typename... ARGS>
|
||||
void error(ARGS... args)
|
||||
{
|
||||
struct Utcb_backup { char buf[Nova::Utcb::size()]; };
|
||||
|
||||
static Lock lock;
|
||||
static Utcb_backup utcb_backup;
|
||||
|
||||
Lock::Guard guard(lock);
|
||||
|
||||
utcb_backup = *(Utcb_backup *)Thread::myself()->utcb();
|
||||
|
||||
Genode::error("VMM: ", args...);
|
||||
|
||||
*(Utcb_backup *)Thread::myself()->utcb() = utcb_backup;
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* _INCLUDE__VMM__PRINTF_H_ */
|
@ -17,7 +17,7 @@
|
||||
/* VMM utility includes */
|
||||
#include <vmm/vcpu_thread.h>
|
||||
#include <vmm/vcpu_dispatcher.h>
|
||||
#include <vmm/printf.h>
|
||||
#include <vmm/log.h>
|
||||
|
||||
|
||||
template <typename T>
|
||||
|
@ -24,7 +24,7 @@
|
||||
|
||||
#include <vmm/vcpu_thread.h>
|
||||
#include <vmm/vcpu_dispatcher.h>
|
||||
#include <vmm/printf.h>
|
||||
#include <vmm/log.h>
|
||||
|
||||
/* NOVA includes that come with Genode */
|
||||
#include <nova/syscalls.h>
|
||||
|
@ -24,7 +24,7 @@
|
||||
|
||||
#include <vmm/vcpu_thread.h>
|
||||
#include <vmm/vcpu_dispatcher.h>
|
||||
#include <vmm/printf.h>
|
||||
#include <vmm/log.h>
|
||||
|
||||
/* NOVA includes that come with Genode */
|
||||
#include <nova/syscalls.h>
|
||||
|
Loading…
Reference in New Issue
Block a user