- Implement proper memory detection by parsing UEFI memory map
- Mark only usable memory regions as free (EfiConventionalMemory, Boot/Loader services)
- Initialize bitmap with all pages marked as used, then free only available regions
- Calculate totalPages based on highest usable address from memory map
- Add 128MB fallback if memory map is unavailable
- Now works correctly with any RAM amount from 0 to 64GB
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
- Update BITMAP_SIZE from 32768 to 2097152 bytes (2MB bitmap)
- Update totalPages calculation to support 64GB (16M pages)
- Update documentation to reflect 64GB memory support
- Memory manager now supports any amount up to 64GB
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>