X-Git-Url: https://git.dujemihanovic.xyz/duje/dujemihanovic.xyz?a=blobdiff_plain;f=boot%2Fx86%2Fstage3%2Fpaging.c;h=5a0e5f707db9806fcf84a69930da23810f2369f2;hb=da4e7bf5dd2b9448b638255a20ee503b0641e495;hp=0482dedf9f98d63f3f2e28f7e53c431ec4c715fb;hpb=d895d72c4e8625b435add9067fe8f7298de2d301;p=nameless-os.git diff --git a/boot/x86/stage3/paging.c b/boot/x86/stage3/paging.c index 0482ded..5a0e5f7 100644 --- a/boot/x86/stage3/paging.c +++ b/boot/x86/stage3/paging.c @@ -1,12 +1,9 @@ /* Code for enabling paging */ #include +#include -#define ADDRESS_NOT_ALIGNED 1 -#define INVL_ADDRESS 2 -#define ADDRESS_ALREADY_MAPPED 3 -#define ADDRESS_RANGE_MISMATCHED 4 - +/* Preallocated page tables. */ static uint32_t page_directory[1024] __attribute__((aligned(4096))) __attribute__((section(".data"))); static uint32_t page_table_firstmb[1024] __attribute__((aligned(4096))) __attribute__((section(".data"))); static uint32_t page_table_kernel[1024] __attribute__((aligned(4096))) __attribute__((section(".data")));