From d98ec57128628b81fcd32269a92742a037b7f713 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 26 Dec 2021 17:50:11 +0200 Subject: First useful jump to userspace! --- include/apos/utils.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/apos/utils.h') 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 static inline size_t align_up(size_t val, size_t a) -- cgit v1.3