16 lines
453 B
C
16 lines
453 B
C
#ifndef KERNEL_H_
|
|
#define KERNEL_H_
|
|
|
|
typedef struct {
|
|
long error;
|
|
long value;
|
|
} sbiret;
|
|
|
|
#define PANIC(fmt, ...) \
|
|
do { \
|
|
printf("PANIC: %s:%d " fmt "\n", __FILE__, __LINE__, ## __VA_ARGS__); \
|
|
while(1) {}; \
|
|
} while(0)
|
|
|
|
#endif // KERNEL_H_
|