Kernel: Fix TmpFS for 32 bit target

There was a problem when sizeof(size_t) != sizeof(PageInfo)
This commit is contained in:
2025-07-18 19:06:37 +03:00
parent 11ae220dbe
commit 5874fd640e
2 changed files with 8 additions and 5 deletions

View File

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