Re:tripple fault when enabling paging
Posted: Sat Aug 14, 2004 7:53 am
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:
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.
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;
}
Anyway I don't know why I'm rambling on any more really. Thanks for the suggestions guys.