tripple fault when enabling paging

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
IRBMe

Re:tripple fault when enabling paging

Post by IRBMe »

Well I did an overhaul of the code and fixed it so that all defines, structs and typedefs that I want available throughout the code are in .h files, and the code is all in .c files (paging.h and paging.c, which includes paging.h for example). I also started making use of "static" to make things private to certain code files.

So it all works fine and dandy now.

I think today I will make my paging more generic (methods like AddPageDirectory, AddPageTable or something). I'm not quite sure how I should go about it, so any ideas are welcome. I think I'll also start planning a memory allocator. I'm thinking about using a doubly linked list of free memory blocks something like:

Code: Select all

struct MEMORY_BLOCK {
      DWORD size;
      MEMORY_BLOCK* prev, next;
}
I'll need to read up on that more though.

Anyway I don't know why I'm rambling on any more really. Thanks for the suggestions guys.
Post Reply