#define _COMMON_H
#define NULL ((void*)0)
+#define PACKED __attribute__ ((packed))
#include <arch.h>
#include <stdarg.h>
*/
typedef struct sKernelSymbol {
char *Name;
- unsigned int Value;
+ Uint Value;
} tKernelSymbol;
#define EXPORT(_name) tKernelSymbol _kexp_##_name __attribute__((section ("KEXPORT"),unused))={#_name, (Uint)_name}
#define EXPORTV(_name) tKernelSymbol _kexp_##_name __attribute__((section ("KEXPORT"),unused))={#_name, (Uint)&_name}
extern void Debug_Log(char *FuncName, char *Fmt, ...);
extern void Debug_Leave(char *FuncName, char RetType, ...);
extern void Debug_HexDump(char *Header, void *Data, Uint Length);
+#define UNIMPLEMENTED() Warning("'%s' unimplemented", __func__)
#if DEBUG
# define ENTER(_types...) Debug_Enter((char*)__func__, _types)
# define LOG(_fmt...) Debug_Log((char*)__func__, _fmt)