Bochs and interrupts
Posted: Tue Dec 16, 2003 3:42 am
First off, after a pause due to a change in personal circumstances I am back and so I have started coding my OS again (of course!).
Okay, more of a question for those who have a working kernel under bochs.
I am having some strange behaviour under bochs most likely due to disabling/enabling interrupts. It looks like IRQ 0 is triggering quite strangely. Does anybody know how this varies to the timer triggering on a "real" computer. My code works perfectly on a regular PC but causes odd register corruption under bochs.
Now, I haven't discounted the fact I have a bug somewhere. But I have written some code with three threads that constantly relinquish CPU and cause a task switch. This should in theory hammer the task switching code and increase the possibility of an IRQ 0 during the task switch code. Now this runs for 24Hrs+ (until I stopped it) on my real pc but bochs will exhibit strange behaviour within seconds.
PS. I have my timer running at 10Hz, which should be slow enough for it to cope okay.
Okay, more of a question for those who have a working kernel under bochs.
I am having some strange behaviour under bochs most likely due to disabling/enabling interrupts. It looks like IRQ 0 is triggering quite strangely. Does anybody know how this varies to the timer triggering on a "real" computer. My code works perfectly on a regular PC but causes odd register corruption under bochs.
Now, I haven't discounted the fact I have a bug somewhere. But I have written some code with three threads that constantly relinquish CPU and cause a task switch. This should in theory hammer the task switching code and increase the possibility of an IRQ 0 during the task switch code. Now this runs for 24Hrs+ (until I stopped it) on my real pc but bochs will exhibit strange behaviour within seconds.
PS. I have my timer running at 10Hz, which should be slow enough for it to cope okay.