create rusage branch.
This commit is contained in:
@ -1,8 +1,17 @@
|
||||
#include <ihk/debug.h>
|
||||
#include <ihk/cpu.h>
|
||||
#include <cls.h>
|
||||
#include <ihk/rusage.h>
|
||||
|
||||
extern struct cpu_local_var *clv;
|
||||
|
||||
void panic(const char *msg)
|
||||
{
|
||||
if (clv) {
|
||||
struct ihk_os_monitor *monitor = cpu_local_var(monitor);
|
||||
|
||||
monitor->status = IHK_OS_MONITOR_PANIC;
|
||||
}
|
||||
cpu_disable_interrupt();
|
||||
|
||||
kprintf(msg);
|
||||
|
||||
Reference in New Issue
Block a user