BrianCArnold / EFIBoot-Disable-BadRAM

An EFI script designed to disable defective memory regions before booting macOS, allowing macOS to work again on systems with faulty memory. For users experiencing memory-related issues on Apple MacBooks and Macs, offering a software-based solution to avoid costly hardware repairs.
0 stars 0 forks source link

BUG: Fix incorrect memory calculation issue. #3

Open BrianCArnold opened 2 hours ago

BrianCArnold commented 2 hours ago

Current state of upstream code calculates the page range incorrectly in corner cases. Update code to use integer division to make calculation simpler and prevent allowing bad memory from getting past the fenceposts.

BrianCArnold commented 2 hours ago

Copy of 0nelight/macOS-Disable-RAM-Areas#9