Add back x86_32 support #5

Merged
Bananymous merged 46 commits from x86_32 into main 2024-04-03 02:36:29 +03:00
2 changed files with 5 additions and 4 deletions
Showing only changes of commit 4d1f0e77f2 - Show all commits

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;
}