aboutsummaryrefslogtreecommitdiff
path: root/mirai/kata/memory.zig
AgeCommit message (Collapse)AuthorFilesLines
2026-02-24Bunch of stuff moved as .old for new arch changeBobby1-288/+0
2026-02-24commit for arch changeBobby1-38/+30
2026-02-23feat: Enhance Kata state management with new states and deferred cleanup for ↵Bobby1-3/+37
page tables
2026-02-23fix: Prevent crash by skipping destruction of current kata's page table in ↵Bobby1-2/+8
cleanup
2026-02-23feat: Enhance Kata memory management with stack growth support and ↵Bobby1-6/+34
additional user stack properties
2026-02-23refactor: Simplify memory cleanup logic in Kata managementBobby1-6/+0
2026-02-23feat: Implement memory cleanup for dissolved Katas and enhance page table ↵Bobby1-0/+15
destruction logic
2026-02-20fix: Update memory section start address in linker script to 512MBBobby1-4/+4
2026-02-20fix: Correct KERNEL_MAP_END value and update MAX_LOCATION_LENGTH documentationBobby1-5/+5
2026-02-20feat: Refactor path handling to use location utilities and update related ↵Bobby1-19/+55
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-76/+22
- 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 I/O operations and update driver importsBobby1-1/+1
- 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-01-28refactor: Replace inline assembly with CPU and I/O functions across multiple ↵Bobby1-1/+1
modules
2026-01-27Refactor memory management and system constantsBobby1-6/+17
- 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/+226
management