aboutsummaryrefslogtreecommitdiff
path: root/mirai/utils
AgeCommit message (Collapse)AuthorFilesLines
2026-02-24Bunch of stuff moved as .old for new arch changeBobby13-686/+0
2026-02-23fix: dynamic attachments in kataBobby1-4/+4
2026-02-20feat: Refactor path handling to use location utilities and update related ↵Bobby3-38/+35
structures - Replaced path references with location in various modules for consistency. - Updated attachment management to use location instead of path. - Enhanced I/O operations to handle location parameters. - Removed deprecated path utilities and integrated location utilities. - Adjusted limits and parameters for kata and attachment management.
2026-02-15Refactor Kata Memory Management and SchedulerBobby1-5/+6
- Updated memory management in `memory.zig` to improve virtual buffer allocation and deallocation. - Removed `sensei.zig` and refactored scheduling logic into new files: `queue.zig`, `sensei.zig`, and `waker.zig`. - Introduced `attachment.zig` for managing attachments with new constants and limits. - Created `pool.zig` for managing the Kata pool, including creation and dissolution of Katas. - Enhanced `types.zig` to define new structures and enums for Katas and their states. - Improved context switching in `shift.zig` to streamline Kata execution state management. - Updated file references and imports across the codebase to reflect new structure.
2026-02-15Refactor Multiboot Integration and Enhance Terminal FunctionalityBobby1-19/+19
- Updated multiboot imports to use the new directory structure. - Refactored font handling to utilize new PSF constants and terminal limits. - Improved terminal implementation by integrating ASCII and color constants. - Introduced a new GDT implementation with proper segment definitions. - Added framebuffer and memory parsing for multiboot protocol. - Enhanced boot sequence with structured message handling and error reporting. - Established constants for terminal dimensions and boot limits. - Created a dedicated TSS implementation for task management.
2026-02-15refactor: Update stack entry structure and improve type handling in integer ↵Bobby2-2/+10
utilities
2026-02-15Refactor I/O operations and update driver importsBobby5-7/+46
- Renamed I/O port functions for clarity: `write_port_byte` to `out_byte`, `read_port_byte` to `in_byte`, `write_port_word` to `out_word`, `read_port_word` to `in_word`, `write_port_long` to `out_long`, and `read_port_long` to `in_long`. - Updated import paths for serial, ahci, ata, gpt, keyboard, terminal, and other drivers to reflect new directory structure. - Replaced instances of `read_file_by_path` with `view_unit_at` in various files for consistency. - Added new utility functions for AHCI FIS setup and defined types for AHCI and PCI. - Introduced string copy utilities for handling strings from Kata pointers.
2026-02-15Refactor AFS and GPT Filesystem ImplementationBobby2-0/+53
- Removed the old GPT partition table parser and replaced it with a new implementation in `mirai/fs/gpt/gpt.zig` that adheres to the latest standards. - Introduced a new AFS (Akiba File System) driver in `mirai/fs/afs/afs.zig`, including operations for reading, writing, and managing clusters and entries. - Added utilities for handling AFS locations, clusters, and cache operations in `mirai/fs/afs/location.zig`, `mirai/fs/afs/cluster.zig`, and `mirai/fs/afs/cache.zig`. - Implemented read and write operations for AFS in `mirai/fs/afs/read.zig` and `mirai/fs/afs/write.zig`, including functions for managing unit sizes and stack entries. - Introduced type definitions for AFS structures in `mirai/fs/afs/types.zig` and updated the existing types in `mirai/fs/gpt/types.zig`. - Added endian conversion utilities in `mirai/utils/bytes/endian.zig` to facilitate byte order handling. - Enhanced utility functions for converting integer types in `mirai/utils/types/int.zig`.
2026-02-15Refactor terminal graphics and video handlingBobby8-198/+238
- Updated terminal.zig to improve console output management with cursor and scrolling functionality. - Introduced new graphics constants in graphics.zig for better color and terminal configuration management. - Simplified framebuffer operations in video.zig by utilizing pixel utilities for pixel manipulation. - Removed obsolete file descriptor and location utilities to streamline the codebase. - Added pixel utilities for efficient pixel and framebuffer operations, including filling and clearing rectangles. - Enhanced character rendering and line management in terminal graphics.
2026-02-15feat: Add various invocations for file system and I/O operationsBobby12-0/+426
- Implemented `viewstack` invocation to list contents of a stack. - Created `attach` invocation for opening attachments with device and unit handling. - Added `getkeychar` invocation to read a single character from the keyboard. - Developed `mark` invocation to write to attachments with color support. - Introduced `seal` invocation to close attachments. - Implemented `view` invocation to read from attachments. - Added `wipe` invocation to clear the terminal screen. - Created `exit` invocation to dissolve a Kata and seal attachments. - Implemented `postman` invocation for letter passing between parent and child Katas. - Added `spawn` invocation to create new Katas from executables. - Implemented `wait` invocation to wait for child Katas to dissolve. - Added `yield` invocation to voluntarily give up CPU time to Sensei. - Introduced utility functions for location resolution and path handling. - Added memory copy and slice utilities for efficient data manipulation. - Implemented random number generation utilities. - Added string comparison utilities for easier string handling. - Introduced integer and pointer conversion utilities for type safety. - Implemented result handling utilities for invocation results.
2026-01-27Refactor memory management and system constantsBobby1-1/+12
- Moved memory-related constants from `constants.zig` to `system/constants.zig` for better organization. - Introduced `system/limits.zig` to centralize system-wide limits and constants. - Updated various modules to use the new `system` module for accessing constants and limits. - Added validation functions for user pointers and memory ranges in `system/limits.zig`. - Enhanced file handling in `afs.zig` with a new function to get file size by path. - Improved error handling and validation in various invocations and memory management functions. - Marked the end of the kernel in the linker script for memory management.
2026-01-23feat: Integrate memory constants across modules for improved configuration ↵Bobby1-0/+2
management
2026-01-23refactor: Reorder and organize import statements across multiple files for ↵Bobby1-4/+4
improved readability
2025-12-16separate invocations; moved helper functions to utils; created invocations ↵Bobby3-0/+109
for spawn, wait for kata handling; added required fields in kata