-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reserve multiboot physical memory #344
Reserve multiboot physical memory #344
Conversation
Just realized there might be an issue when there is no multiboot image since the range would then be the empty range at 0 and block the first physical memory page. |
564bec9
to
0f4a50c
Compare
In the future, we probably should add another flag reserved to the frame_t and handle it properly in the PMM. Then, maybe instead of skipping the frames, we could create them and reserve (consume) them immediately. Same should apply to all the memory regions reported as reserved by multiboot, ACPI and others. |
1363707
to
b9deb8f
Compare
b9deb8f
to
6b2382d
Compare
Add a reserved regions feature to regions.c. Reserved memory regions are prohibited from being used as frames by pmm. Currently, the only reserved region is the multiboot memory. Signed-off-by: Sandro Rüegge <[email protected]>
6b2382d
to
dd5b1d3
Compare
Fixes #342 by passing the multiboot memory range to the physical memory manager. The physical memory manager then skips any memory overlapping with the multiboot memory range.