OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Apr 25, 2024 9:42 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: PIT tickrate using APIC
PostPosted: Sat Jul 11, 2020 4:37 pm 
Offline
Member
Member

Joined: Sun Apr 05, 2020 1:01 pm
Posts: 183
Hi, I just finished setting up IOAPIC and LAPIC and I'm seeing some weird behavior with the PIT timer.

On QEMU the PIT seems to be ticking twice the expected tickrate (I'm 100% sure that PIC is fully masked off, the mask is 255 I've checked).
But when I checked on VMWare it was the normal tickrate again. Why am I seeing this behavior? Is it supposed to be like that on QEMU?
When I go back to PIC the tickrate goes back to normal. (And on bochs I can't really check because its real time is off by a lot.)

just for the record here are the settings that im using in the IOAPIC:
Code:
RedirectionEntry re {};
re.index            = to_index;
re.delivery_mode    = DeliveryMode::FIXED;
re.destination_mode = DestinationMode::PHYSICAL;
re.pin_polarity     = PinPolarity::ACTIVE_HIGH;
re.trigger_mode     = TriggerMode::EDGE;
re.is_disabled      = false;
re.local_apic_id    = local_apic_id;


Thanks.

UPD: after setting the real time flag in bochs, it seems like the tickrate is normal there as well. QEMU is the only one acting weird.


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

All times are UTC - 6 hours


Who is online

Users browsing this forum: dmemsm and 238 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