aboutsummaryrefslogtreecommitdiff
path: root/include/apos/utils.h
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2021-12-26 17:50:11 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2021-12-26 17:50:11 +0200
commitd98ec57128628b81fcd32269a92742a037b7f713 (patch)
tree0e3f8d78d8347ef0a6e69d41b9d9be20c822b642 /include/apos/utils.h
parenta64f3588ff5da7f148659ccb0eff844ccfb57088 (diff)
downloadkmi-d98ec57128628b81fcd32269a92742a037b7f713.tar.gz
kmi-d98ec57128628b81fcd32269a92742a037b7f713.zip
First useful jump to userspace!
Diffstat (limited to 'include/apos/utils.h')
-rw-r--r--include/apos/utils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/apos/utils.h b/include/apos/utils.h
index f1e79fa..eff473f 100644
--- a/include/apos/utils.h
+++ b/include/apos/utils.h
@@ -33,6 +33,8 @@
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
#define ALIGNED(x, a) ((x) % a == 0)
+#define ptradd(x, y) (((vm_t)(x)) + ((vm_t)(y)))
+
#include <apos/types.h>
static inline size_t align_up(size_t val, size_t a)