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:
parent
d7bf34ecd0
commit
4d1f0e77f2
|
@ -29,12 +29,13 @@ namespace Kernel
|
||||||
BAN::Array<paddr_t, 5> block;
|
BAN::Array<paddr_t, 5> block;
|
||||||
static constexpr size_t direct_block_count = 2;
|
static constexpr size_t direct_block_count = 2;
|
||||||
#elif ARCH(i686)
|
#elif ARCH(i686)
|
||||||
// 14x direct blocks
|
uint32_t __padding;
|
||||||
|
// 5x direct blocks
|
||||||
// 1x singly indirect
|
// 1x singly indirect
|
||||||
// 1x doubly indirect
|
// 1x doubly indirect
|
||||||
// 1x triply indirect
|
// 1x triply indirect
|
||||||
BAN::Array<paddr_t, 17> block;
|
BAN::Array<paddr_t, 8> block;
|
||||||
static constexpr size_t direct_block_count = 14;
|
static constexpr size_t direct_block_count = 5;
|
||||||
#else
|
#else
|
||||||
#error
|
#error
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -21,6 +21,6 @@ namespace Kernel
|
||||||
{
|
{
|
||||||
|
|
||||||
using vaddr_t = uintptr_t;
|
using vaddr_t = uintptr_t;
|
||||||
using paddr_t = uintptr_t;
|
using paddr_t = uint64_t;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue