Need help with paging implementation (bug-fixes)

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.
Post Reply
kfreezen
Member
Member
Posts: 46
Joined: Tue Jul 21, 2009 11:36 am

Need help with paging implementation (bug-fixes)

Post by kfreezen »

Hi,

I need you all to help me find bugs in my OS. Right now it triple-faults whenever I enable paging.

my code is attached in the .tar below.
If you find a bug, please tell me what file and function it is in.

included is paging.c, paging.h, _paging.s, and main.c

Thanks in advance for your help :)
Attachments
paging_code.tar
(10 KiB) Downloaded 41 times
User avatar
thepowersgang
Member
Member
Posts: 734
Joined: Tue Dec 25, 2007 6:03 am
Libera.chat IRC: thePowersGang
Location: Perth, Western Australia
Contact:

Re: Need help with paging implementation (bug-fixes)

Post by thepowersgang »

If anyone actually posts with fixes, I would be surprised, most of us have our own problems to solve with our own kernels.
And, if we just solved your bugs for you, what would you learn?
But, just from what you have said, I would assume that either your code doesn't end up being mapped (usually you would identity map the first, say, 4 MiB) or the IDT either isn't loaded, or points to memory that is not mapped.
If this doesn't solve the problem then run it in bochs with the debugger enabled and find out what instruction it stops on and why.
Kernel Development, It's the brain surgery of programming.
Acess2 OS (c) | Tifflin OS (rust) | mrustc - Rust compiler
Currently Working on: mrustc
Post Reply