Paging Memory problems
Posted: Sun Aug 01, 2004 5:29 pm
Ok, I'm new here, but I did search thoroughly for anything related to my problem, not only here but everywhere I cound find related to the subject of operating system development. I've been trying to figure this one out for a few days now, and I've come to a dead end.
I'm setting up my memory manager for my kernel, and I have my GDT setup, and I was able to enable the first 4MB of memory in paging. I'm trying to extend this, but it's not working. Here's exactly what I've tracked it down to.
When I write the page table entry for a page of memory, nothing is actually written. I can read it back on the next line of code, and it's 0x00000000. I've verified the value that's being used to write it, and it's correct. I can't for the life of me figure out WHY it won't maintain the memory I'm writing. I haven't even added this set of pages to the directory yet.
Anyone have any suggestions? As I said, I've exhausted all my ideas. I'd just like to get this working so I can continue development on other aspects of the kernel.
I'm setting up my memory manager for my kernel, and I have my GDT setup, and I was able to enable the first 4MB of memory in paging. I'm trying to extend this, but it's not working. Here's exactly what I've tracked it down to.
When I write the page table entry for a page of memory, nothing is actually written. I can read it back on the next line of code, and it's 0x00000000. I've verified the value that's being used to write it, and it's correct. I can't for the life of me figure out WHY it won't maintain the memory I'm writing. I haven't even added this set of pages to the directory yet.
Anyone have any suggestions? As I said, I've exhausted all my ideas. I'd just like to get this working so I can continue development on other aspects of the kernel.