diff options
author | Marvin Borner | 2020-05-14 22:32:52 +0200 |
---|---|---|
committer | Marvin Borner | 2020-05-14 22:32:52 +0200 |
commit | 89b9cad0607d8fb81489143e312c1983e3e8a552 (patch) | |
tree | ef4a31e2f1fc5a471756f76ed5d0cabafd04a6bb /src/kernel/memory/paging.h | |
parent | 977aaa6e42d12d1237611673453ab9a9fbd46175 (diff) |
Some attempts to fix it, nothing works
Diffstat (limited to 'src/kernel/memory/paging.h')
-rw-r--r-- | src/kernel/memory/paging.h | 6 |
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 |