summaryrefslogtreecommitdiff
path: root/kernel/src/utils/align.hpp
diff options
context:
space:
mode:
authorcpplover0 <osdev555@yandex.com>2026-03-30 18:21:18 +0300
committercpplover0 <osdev555@yandex.com>2026-03-30 18:21:18 +0300
commit8844a7888ea94a11939b1c92915162f2e5acd378 (patch)
tree1b4ef74fde17d6f8bb6e054f3266e9342b41c836 /kernel/src/utils/align.hpp
parentbe997311c240f49db247ccce05ecb8ea5d3bfc31 (diff)
trying to get xhci working on vboxHEADmain
Diffstat (limited to 'kernel/src/utils/align.hpp')
-rw-r--r--kernel/src/utils/align.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/src/utils/align.hpp b/kernel/src/utils/align.hpp
index 2f2c665..f361185 100644
--- a/kernel/src/utils/align.hpp
+++ b/kernel/src/utils/align.hpp
@@ -1,2 +1,4 @@
#define ALIGNUP(VALUE, c) ((VALUE + c - 1) & ~(c - 1))
-#define ALIGNDOWN(VALUE, c) ((VALUE / c) * c) \ No newline at end of file
+#define ALIGNDOWN(VALUE, c) ((VALUE / c) * c)
+#define ALIGNPAGEUP(VALUE) ALIGNUP(VALUE, 4096)
+#define ALIGNPAGEDOWN(VALUE) ALIGNDOWN(VALUE, 4096) \ No newline at end of file