When I execute my code to reprogram the PIC, Bochs popped up a dialog box telling me [PIC] >>PANIC<< write to port 20h = 21.
Then, it lets me choose to continue. Did I do something wrong?
Clicking continue proceeds and everything else looks fine.
Vince
Reprogramming the PIC in Bochs
Thank you, I got my port/value parameters mixed up.
I'm trying to setup my IDT so I was remapping the IRQs to different Interrupts.
Now I'm getting alot of these errors:
[CPU0] BxError: instruction with opcode=0xff
[CPU0] mod was c0, nnn was 7, rm was 7
[CPU0] WARNING: Encountered an unkown instruction (signalling illegal instruction)
Bochs repeats that for about 10 seconds and then it'll reset itself.
I probably messed up my IDT entries.
Thanks for your help.
I'm trying to setup my IDT so I was remapping the IRQs to different Interrupts.
Now I'm getting alot of these errors:
[CPU0] BxError: instruction with opcode=0xff
[CPU0] mod was c0, nnn was 7, rm was 7
[CPU0] WARNING: Encountered an unkown instruction (signalling illegal instruction)
Bochs repeats that for about 10 seconds and then it'll reset itself.
I probably messed up my IDT entries.
Thanks for your help.
Thanks JamesM, I got my TSS loaded and everything seems to be ok. I'm going to be doing software task switching. Do I still need to initialize all the fields of the TSS? Since I'm basically only going to use it for RING3->RING0 PL changes, is initializing only SS0 and ESP0 sufficient?
Furthermore, I assume it's a good idea to point ESP0 to a place that won't interfere with any RING0 tasks. Am I right?
My interrupts are still misbehaving with Bochs reporting many instances of:
[CPU0] BxError: instruction with opcode=0xff
[CPU0] mod was c0, nnn was 7, rm was 7
[CPU0] WARNING: Encountered an unkown instruction (signalling illegal instruction)
Furthermore, I assume it's a good idea to point ESP0 to a place that won't interfere with any RING0 tasks. Am I right?
My interrupts are still misbehaving with Bochs reporting many instances of:
[CPU0] BxError: instruction with opcode=0xff
[CPU0] mod was c0, nnn was 7, rm was 7
[CPU0] WARNING: Encountered an unkown instruction (signalling illegal instruction)
Yeah, sorry. I created another thread because it was a separate topic. Consider this one case closed.... Solved.pcmattman wrote:Show us how you setup your IDT entries. It may be an invalid IDT entry causing unwanted code to execute (ie. a null value would cause the real mode interrupt vector to try to be executed)
Edit: just noticed the second thread about the exact same thing, with the IDT setup code...