aboutsummaryrefslogtreecommitdiff
path: root/shared/fs/afs
AgeCommit message (Collapse)AuthorFilesLines
2026-03-27Refactor and implement interrupt handling and PIT driverBobby1-3/+3
- Refactored CPU context structure for better readability. - Enhanced corpse and exception structures with clearer formatting. - Improved frame structure for consistency. - Added interrupt flag operations for enabling and disabling interrupts. - Implemented IDT (Interrupt Descriptor Table) operations including loading and setting gates. - Created PIC (Programmable Interrupt Controller) initialization and masking functions. - Developed PIT (Programmable Interval Timer) driver with initialization and handler functions. - Established common interrupt handler structure and exception handling stubs. - Added hardware IRQ handling for IRQs 0-15. - Introduced IDT entry and gate descriptor types for better organization. - Ensured proper handling of interrupt and exception vectors.
2026-03-25Add AFS and FAT32 filesystem implementationsBobby28-0/+1359
- Introduced AFS allocation operations with bitmap management in `allocate.zig`. - Implemented stack write operations for AFS in `stack.zig`, including record creation functions. - Added unit write operations for AFS in `unit.zig`, enabling data writing to spans. - Created a unified write interface for AFS in `write.zig` to streamline write operations. - Established FAT32 constants and types in `constants.zig` and `types.zig`, respectively. - Developed FAT32 filesystem structure in `fat32.zig`, including re-exports for common types. - Implemented cluster operations for FAT32 in `cluster.zig`, handling cluster validation and reading. - Added read operations for FAT32 in `read.zig`, integrating cluster and stack functionalities. - Created entry types for FAT32 in `entry.zig`, supporting standard and long identity entries. - Developed boot sector creation and initialization functions in `boot.zig` for FAT32. - Implemented entry creation functions in `entry.zig` for FAT32, supporting short and long names. - Introduced shared filesystem libraries in `fs.zig` and `shared.zig` for better modularity. - Added mkafsdisk AFS adapter in `toolchain/mkafsdisk/afs/afs.zig` for host file I/O operations.