Kernel: Fix physical address size for x86_32

Having 32 bit address space does not mean physical address space
is also only 32 bits...
This commit is contained in:
Bananymous 2024-03-26 19:05:34 +02:00
parent d7bf34ecd0
commit 4d1f0e77f2
2 changed files with 5 additions and 4 deletions

View File

@ -29,12 +29,13 @@ namespace Kernel
BAN::Array<paddr_t, 5> block;
static constexpr size_t direct_block_count = 2;
#elif ARCH(i686)
// 14x direct blocks
uint32_t __padding;
// 5x direct blocks
// 1x singly indirect
// 1x doubly indirect
// 1x triply indirect
BAN::Array<paddr_t, 17> block;
static constexpr size_t direct_block_count = 14;
BAN::Array<paddr_t, 8> block;
static constexpr size_t direct_block_count = 5;
#else
#error
#endif

View File

@ -21,6 +21,6 @@ namespace Kernel
{
using vaddr_t = uintptr_t;
using paddr_t = uintptr_t;
using paddr_t = uint64_t;
}