aboutsummaryrefslogtreecommitdiff
path: root/include/apos/vmem.h
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2021-12-23 17:47:46 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2021-12-23 17:47:46 +0200
commit64ef02c4baa0a1181a28e2e1b1517de3ba4907be (patch)
tree71da34495e878d24fb06cbc2051e65b50ec53531 /include/apos/vmem.h
parent272e1889ce14aaea9e3431a93c406d347f5b3c54 (diff)
downloadkmi-64ef02c4baa0a1181a28e2e1b1517de3ba4907be.tar.gz
kmi-64ef02c4baa0a1181a28e2e1b1517de3ba4907be.zip
map_fill_region can now utilize higher order pages
Diffstat (limited to 'include/apos/vmem.h')
-rw-r--r--include/apos/vmem.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/apos/vmem.h b/include/apos/vmem.h
index fd1a165..4cc4895 100644
--- a/include/apos/vmem.h
+++ b/include/apos/vmem.h
@@ -30,6 +30,8 @@ struct sp_mem {
#define __pa(x) (((char *)(x)) + RAM_BASE - VM_DMAP)
#define __page(x) ((x) / BASE_PAGE_SIZE)
#define __addr(x) ((x) * BASE_PAGE_SIZE)
+#define __pages(x) (__page(x))
+#define __bytes(x) (__addr(x))
/* general overview of the different functions:
* internally they all work with pages, but they are called and return usable