cleanup: update stale comments

This commit is contained in:
daniel committed 2026-08-15 21:18:03 +02:00
1 parent 788b662d44
commit cc90b34fdb
5 files changed
+10 -9

No files matched your search

+4 -3
View File
@@ -80,7 +80,7 @@ namespace Sched {
uint64_t pml4Phys; // Physical address of per-process PML4
uint64_t kernelStackTop; // Top of kernel stack (for TSS RSP0 / SYSCALL)
uint64_t userStackTop; // User-space stack top
uint64_t heapNext; // Simple bump allocator for user heap
uint64_t heapNext; // High-water mark of the user-heap address space
uint32_t readdirCursor; // Next SYS_READDIR scratch slot
char args[4096]; // Command-line arguments (set by parent via Spawn)
char environment[EnvironmentBytes]; // NUL-separated NAME=VALUE entries
@@ -273,8 +273,9 @@ namespace Sched {
// Per-process allocated page count (tracked by Heap syscalls, separate from Process struct)
inline uint64_t g_allocatedPages[MaxProcesses] = {};
// One bit per page in the bounded userspace heap. Unlike heapNext, this
// makes virtual ranges reusable after unmap and failed reservations.
// One bit per page in the bounded userspace heap. This is the authoritative
// allocation state; unlike heapNext, it makes virtual ranges reusable after
// unmap and failed reservations.
inline uint64_t g_userHeapPageMap[MaxProcesses][UserHeapBitmapWords] = {};
}