OSDev.org

The Place to Start for Operating System Developers
It is currently Tue May 14, 2024 11:15 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Different behaviours in bochs and qemu [solved]
PostPosted: Tue Oct 25, 2011 5:30 pm 
Offline

Joined: Thu Oct 20, 2011 10:10 pm
Posts: 15
Hi,
my kernel runs perfectly in qemu, but when i run it with bochs after few seconds of task switching it stops with an exception n 13 should be the bad tss exception. 5 o 6 times the task switch occours because each process prints a different message.
Now...if it have to comply about the tss, why after several switches?! sometimes after 50. I do not alloc nothing new the 2 tasks tey just enter in an endless loop and they write a character on the screen. STRANGE

this is the interesting part in the bochs output:

Code:
00803208341e[CPU0 ] interrupt(): gate descriptor is not valid sys seg (vector=0x27)


looks like that an hardware interrupt fires?! i have masked all the irqs except the irq0 for the timer and that is mapped at 0x20.

Thanks for the help
Dave


Top
 Profile  
 
 Post subject: Re: Different behaviours in bochs and qemu [solved]
PostPosted: Tue Oct 25, 2011 5:47 pm 
Offline

Joined: Thu Oct 20, 2011 10:10 pm
Posts: 15
Ok...few minutes to remember that i do not put an entry in the idt table for the irq7 = offset 39 in my remapping of the irqs = 0x27...
Anyway qemu do not complain even without it if the irq do not fires. Looks like bochs uses that irq line for some reasons and test if it have an entry in the idt.
I repeat, the irq line is also masked and the only one not masked is for the timer, irq0. Bochs just complains for IRQ37 i can put all zeros in the other entries of the IDT.

But now it works :D


Top
 Profile  
 
 Post subject: Re: Different behaviours in bochs and qemu [solved]
PostPosted: Wed Oct 26, 2011 3:18 am 
Offline
Member
Member
User avatar

Joined: Thu Aug 11, 2005 11:00 pm
Posts: 1110
Location: Tartu, Estonia
I've never seen IRQ7 randomly fire on Bochs... On real hardware IRQ7 usually is a "spurious interrupt", and I indeed observed it on some PCs.

_________________
Programmers' Hardware Database // GitHub user: xenos1984; OS project: NOS


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Google [Bot] and 24 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group