diff --git a/kernel/include/kernel/FS/TmpFS/Definitions.h b/kernel/include/kernel/FS/TmpFS/Definitions.h index 92543775db..bfbe33d3d1 100644 --- a/kernel/include/kernel/FS/TmpFS/Definitions.h +++ b/kernel/include/kernel/FS/TmpFS/Definitions.h @@ -21,12 +21,23 @@ namespace Kernel size_t size { 0 }; blkcnt_t blocks { 0 }; +#if ARCH(x86_64) // 2x direct blocks // 1x singly indirect // 1x doubly indirect // 1x triply indirect BAN::Array block; static constexpr size_t direct_block_count = 2; +#elif ARCH(i386) + // 14x direct blocks + // 1x singly indirect + // 1x doubly indirect + // 1x triply indirect + BAN::Array block; + static constexpr size_t direct_block_count = 14; +#else + #error +#endif static constexpr size_t max_size = direct_block_count * PAGE_SIZE + (PAGE_SIZE / sizeof(paddr_t)) * PAGE_SIZE +