add hexdump command
[thunix.git] / include / thunix.h
blobe5e98bcd7af52f17ee63ace53eba5d0e7142c2a5
1 #ifndef _THUNIX_H
2 #define _THUNIX_H
4 #include <time.h>
6 #define pause() ({ \
7 while (1) \
8 ; \
9 })
11 #define DEBUG_ON 1
12 #define EXT2_DEBUG_ON 0
14 #define DEBUG(x) ( { \
15 if (DEBUG_ON) { \
16 printk("DEBUG (%s, %d): %s:",__FILE__,__LINE__,__FUNCTION__); \
17 x; \
18 } \
21 #define EXT2_DEBUG(x) ( { \
22 if (EXT2_DEBUG_ON) { \
23 printk("DBG (%s, %d): %s: ", \
24 __FILE__, __LINE__, __FUNCTION__); \
25 x; \
26 } \
29 #define CURRENT_TIME 0 /* Not yet */
31 /* for fs part */
32 #define RAM_EXT2_FS 1
36 extern void panic(char *);
38 extern unsigned long get_current_time(struct tm*);
40 #define LOG_PRINT printk
42 #endif /* thunix.h */