Bochs/Interrupts
Bochs/Interrupts
Have you noticed any problems with Bochs concerning interrupts. Because I can handle keyboard IRQs on a real machine but it doesn't work on Bochs 2.0. I think it worked on in Bochs 1.4.1, but I'm not really sure...
Any ideas?
Any ideas?
Re:Bochs/Interrupts
Hm, I noticed that my keyboard IRQ works in Bochs when I change my stack size...I had the stack size to be 256 KB, I had s.th. like this:
Now, when I change it to 4KB (4096), it works...
Anybody knows why? Besides, I'm having trouble with my page fault handler...although I have set up my own ISR for interrupt 14, Bochs quits with the error message "3rd (14) exception with no resolution" when enabling paging...
Code: Select all
section .bss
resb 262144 ; = 256 KB
stack_top:
Anybody knows why? Besides, I'm having trouble with my page fault handler...although I have set up my own ISR for interrupt 14, Bochs quits with the error message "3rd (14) exception with no resolution" when enabling paging...
Re:Bochs/Interrupts
Ok, when I generate an "__asm__("int $0xe")", that is a page fault, my Page fault handler successfully handles it...but when I try to enable paging, bochs quits with the known error
- Pype.Clicker
- Member
- Posts: 5964
- Joined: Wed Oct 18, 2006 2:31 am
- Location: In a galaxy, far, far away
- Contact:
Re:Bochs/Interrupts
page fault exception come with a error code which cannot be pushed on the stack by your INT 0x0e instruction.
Re:Bochs/Interrupts
Well, I didn't push anything on the stack, and my page fault handler said that there would be a page fault at address 0 (because there was nothin in cr0 and because I just did int $0xe)
Re:Bochs/Interrupts
Hm, I think I wrote my page directory wrong to CR3, now I fixed that, but when enabling paging, I get the error:
"prefetch: running in bogus memory"
What does that mean? Can somebody please help me?
"prefetch: running in bogus memory"
What does that mean? Can somebody please help me?
Re:Bochs/Interrupts
I not sure, I would have to see the part of code for the stack. Is it the same as above?
Re:Bochs/Interrupts
Well, I think so...Bochs quits with saying:
My stack is simply that here:prefetch: running in bogus memory
Code: Select all
...
...
mov esp, stack_top
...
...
section .bss
resb 4096 ; 4KB for stack
stack_top: