Memory Map >4GB
Posted: Sat Jan 17, 2009 12:20 am
I've been attempting to write a function that initializes the bitmaps that will handle my kernel's physical memory management, and except for one case (which I don't think'll come up too often) it should work correctly. However, currently, the system has one bitmap for memory under 4GB (representing 16MB-highest type 1 address) and a set of variables for bitmap ptrs, sizes (in longs), and 64bit start addresses. Each contiguous amount of memory >4GB is given it's own bitmap. All of this as far as I can tell works as the logic of the code isn't terribly difficult (or at least it's fixable if it isn't).
The case that my code does not handle is when the base is under 4GB, but the range takes the entry above 4GB.
I can probably handle this just fine with a little tweak, but I'm wondering if it's worth it. Is there almost always a reserved
area right before 4GB?
The case that my code does not handle is when the base is under 4GB, but the range takes the entry above 4GB.
I can probably handle this just fine with a little tweak, but I'm wondering if it's worth it. Is there almost always a reserved
area right before 4GB?