aboutsummaryrefslogtreecommitdiff
path: root/src/core/paging.h
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2021-04-14 18:16:31 +0200
committerLoic Guegan <manzerbredes@mailbox.org>2021-04-14 18:16:31 +0200
commit28870fc37564dff19161306d865ccf329357a81f (patch)
tree84667d96eef3348a57d20ae8f5b84e078cde625c /src/core/paging.h
parent2fc03e597e97d2139490a303b95e5ad807ee4239 (diff)
Correct cast
Diffstat (limited to 'src/core/paging.h')
-rw-r--r--src/core/paging.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/paging.h b/src/core/paging.h
index 58a33b2..5329384 100644
--- a/src/core/paging.h
+++ b/src/core/paging.h
@@ -9,7 +9,7 @@
#else
#define PAGING_MAX_DIR_ENTRY PAGING_MAX_PAGES/1024
#endif
-#define PADDR(entry) (entry&0xFFFFF000)
+#define PADDR(entry) (((u32)entry)&0xFFFFF000)
/**
* Configure and enable paging