aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/memory/paging.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/memory/paging.h')
-rw-r--r--src/kernel/memory/paging.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/kernel/memory/paging.h b/src/kernel/memory/paging.h
index f1fe064..f0b50b4 100644
--- a/src/kernel/memory/paging.h
+++ b/src/kernel/memory/paging.h
@@ -24,11 +24,11 @@
#define PT_USED 1 << 9
struct page_table {
- u32 pages[1024];
+ u32 pages[1024] __attribute__((aligned(4096)));
};
struct page_directory {
- struct page_table *tables[1024];
+ struct page_table *tables[1024] __attribute__((aligned(4096)));
};
struct page_directory *paging_kernel_directory;
@@ -58,4 +58,4 @@ void paging_set_user(u32 virt, u32 count);
u32 paging_find_pages(u32 count);
u32 paging_alloc_pages(u32 count);
-#endif \ No newline at end of file
+#endif