mcklogd support

This commit is contained in:
takatori
2016-02-22 13:32:20 +09:00
parent d8eeab9b89
commit fff7744907
6 changed files with 132 additions and 15 deletions

View File

@ -13,12 +13,16 @@
#ifndef IHK_DEBUG_H
#define IHK_DEBUG_H
#include <arch-lock.h>
#include <ihk/memconst.h>
struct ihk_kmsg_buf {
int tail;
int len;
char str[IHK_KMSG_SIZE - sizeof(int) * 2];
int head;
int mode;
ihk_spinlock_t lock;
char str[IHK_KMSG_SIZE - sizeof(int) * 4 - sizeof(ihk_spinlock_t)];
};
extern int kprintf(const char *format, ...);