summaryrefslogtreecommitdiff
path: root/src/kernel/mm/vm.cc
Commit message (Collapse)AuthorAgeFilesLines
* Fix: critical malloc size calculation bugRichard Qin2026-01-031-3/+0
| | | | | | | | | | Summary: - Fixed an integer arithmetic error in malloc() where 'nunits' was initialized to 0, causing incorrect heap sizing. - This bug caused malloc to return pointers pointing to unmapped memory pages, leading to Store Page Fault (scause 15) at process boundaries. - Switched memory allocator logic to use byte-based size calculation instead of K&R style units to prevent off-by-one errors. Improvements: - Shell now starts successfully without segfaults.
* dev(sell): add simple libc and implement shellRichard Qin2026-01-021-0/+29
| | | | please see the log for detail.
* dev(file-system): establish VFS and Read-only FAT32 File SystemRichard Qin2026-01-021-0/+47
|
* dev(device): implement VirtIORichard Qin2026-01-011-2/+1
| | | | See dev log for detail
* dev:Refactor Memory Management and Process ManagementRichard Qin2025-12-311-164/+230
|
* fixed(vm): page allocation errorRichard Qin2025-12-281-1/+1
|
* feat(syscall): Implement syscall dispatch and process lifecycle ↵Richard Qin2025-12-281-26/+1
| | | | (exit/wait/sleep)
* feat: Implement the first user program of the lume OSRichard Qin2025-12-271-39/+260
|
* feat: add preemptive scheduling, SBI timer support and FDT parser.Richard Qin2025-12-131-2/+14
|
* feat:Cooperative MultitaskingRichard Qin2025-12-111-0/+2
|
* feat: Initial PMM implementationRichard Qin2025-12-091-0/+100
Introduce the foundational Physical Memory Manager (PMM) and restructure the project for modularity. Implemented basic PMM and related memory management headers (mm/pmm.h, mm/vm.h). Updated Makefile and build process to support new modular structure.