summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/panic.c18
-rw-r--r--lib/panic.h8
-rw-r--r--lib/rbtree.h17
3 files changed, 17 insertions, 26 deletions
diff --git a/lib/panic.c b/lib/panic.c
deleted file mode 100644
index 3b39fbf..0000000
--- a/lib/panic.c
+++ /dev/null
@@ -1,18 +0,0 @@
-#include "panic.h"
-#include "lib/printf.h"
-
-int _kernel_panic_unlock = 0;
-
-void
-kpanic(const char *fmt, ...)
-{
- _kernel_panic_unlock = 1;
-
- va_list ap;
- va_start(ap, fmt);
-
- kvprintf(fmt, ap);
-
- va_end(ap);
- hcf();
-}
diff --git a/lib/panic.h b/lib/panic.h
deleted file mode 100644
index 8f3b409..0000000
--- a/lib/panic.h
+++ /dev/null
@@ -1,8 +0,0 @@
-#ifndef _JOVE_LIB_PANIC_H
-#define _JOVE_LIB_PANIC_H 1
-
-#include "jove.h"
-
-NORETURN void kpanic(const char *fmt, ...);
-
-#endif
diff --git a/lib/rbtree.h b/lib/rbtree.h
new file mode 100644
index 0000000..1dbd5b2
--- /dev/null
+++ b/lib/rbtree.h
@@ -0,0 +1,17 @@
+#ifndef _JOVE_LIB_RBTREE_H
+#define _JOVE_LIB_RBTREE_H 1
+
+#include <stdint.h>
+
+struct rbtree_node
+{
+ struct rbtree_node *parent;
+ struct rbtree_node *children[2];
+
+ char color;
+ intmax_t (*get_key)(struct rbtree_node*);
+};
+
+
+
+#endif