Physical Page Allocation: Wrapping?
Posted: Fri Aug 03, 2007 11:21 pm
Kevin McGuire wrote a neat page allocation scheme for my OS, but now I've found a small problem in it. I was adding (yet) another module to my OS via the GRUB command line and then suddenly everything started failing. I looked a bit closer and found out that somehow the memory had wrapped around and come back to the space before the kernel.
Now, I don't even get any memory after I hit the 4 MB mark:
The code for the page allocator is at this location.
I've been working at this for several hours now (short in comparison to other problems) and I'm hoping someone else can find the answer where I can't.
Now, I don't even get any memory after I hit the 4 MB mark:
Code: Select all
Allocated memory at 0x3bf000
Allocated memory at 0x3c9000
Allocated memory at 0x3d3000
Allocated memory at 0x3dd000
Allocated memory at 0x3e7000
Allocated memory at 0x3f1000
Allocated memory at 0x0
<more 0x0s>
I've been working at this for several hours now (short in comparison to other problems) and I'm hoping someone else can find the answer where I can't.