summaryrefslogtreecommitdiffstats
path: root/jove.h
diff options
context:
space:
mode:
authorJon Santmyer <jon@jonsantmyer.com>2026-09-04 11:31:40 -0400
committerJon Santmyer <jon@jonsantmyer.com>2026-09-04 11:31:40 -0400
commit8251da342161767fe203627223ccd4a7026701c6 (patch)
treeaf2db0f11b0ea8ad35f88663a855bab39a80f679 /jove.h
downloadjove-kernel-8251da342161767fe203627223ccd4a7026701c6.tar.gz
jove-kernel-8251da342161767fe203627223ccd4a7026701c6.tar.bz2
jove-kernel-8251da342161767fe203627223ccd4a7026701c6.zip
initial commit. working on tasking
Diffstat (limited to 'jove.h')
-rw-r--r--jove.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/jove.h b/jove.h
new file mode 100644
index 0000000..9c21039
--- /dev/null
+++ b/jove.h
@@ -0,0 +1,20 @@
+#ifndef _JOVE_H
+#define _JOVE_H 1
+
+#define NORETURN __attribute__((noreturn))
+#define PACKED __attribute__((packed))
+
+#define ALIGN(n) __attribute__((aligned(n)))
+#define PAGEALIGN __attribute__((aligned(0x1000)))
+
+NORETURN void hcf(void);
+
+extern int errno;
+#define reterr(e) \
+ errno = e; \
+ return 0
+
+#define EBADOBJ -1
+#define EOOB -2
+
+#endif