By optimizing my kernel I have found a bug, my mouse module, which runs at ring 3 suddenly started "crashing", it gave me a pagefault. That's because its codesize is bigger than one page. All my other modules are less than one page big. So I guess the processor doesn't check the tlb for the first page when iret-ing, expecting the code to be both present and be of the correct ring-space, hence the "considered harmful" famous quote?
As you see, Im just an hobbyist trying figurying things out.
ring3 expectation considered harmful?
- jerryleecooper
- Member
- Posts: 233
- Joined: Mon Aug 06, 2007 6:32 pm
- Location: Canada
- jerryleecooper
- Member
- Posts: 233
- Joined: Mon Aug 06, 2007 6:32 pm
- Location: Canada
- jerryleecooper
- Member
- Posts: 233
- Joined: Mon Aug 06, 2007 6:32 pm
- Location: Canada
I will be more careful about that.JamesM wrote:This is *not* the correct subforum for bugs in your kernel. Try OS Development.
About the bug I supposedly corrected, it's still here. Im envisaging switching to ELF for my binaries, right now im just using plain vanila binaries which are statically linked with a.o , the C library.