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
Need help with paging implementation (bug-fixes)
Need help with paging implementation (bug-fixes)
- Attachments
-
- paging_code.tar
- (10 KiB) Downloaded 41 times
- thepowersgang
- 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)
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.
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
Acess2 OS (c) | Tifflin OS (rust) | mrustc - Rust compiler
Currently Working on: mrustc