Bochs PIT broken? [solved]

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
dukedevon
Posts: 21
Joined: Thu Jul 08, 2010 10:02 am
Location: Karlsruhe, Germany
Contact:

Bochs PIT broken? [solved]

Post by dukedevon »

I followed James Molloys tutorial to this point: http://www.jamesmolloy.co.uk/tutorial_h ... 20PIT.html.
Now I am stuck with the PIT. If i issue

Code: Select all

__asm__ __volatile__("int $0x20");
in the kernel, the system prints

Code: Select all

Tick: <nr>
as it is supposed to be, but I should get constant output of the tick value.
Is Bochs PIT broken or am I doing something wrong?

Thanks in advance
duke.devon
Last edited by dukedevon on Mon Jul 19, 2010 8:41 am, edited 1 time in total.
FlExOS --- Stay tuned ;-)
cyr1x
Member
Member
Posts: 207
Joined: Tue Aug 21, 2007 1:41 am
Location: Germany

Re: Bochs PIT broken?

Post by cyr1x »

Maybe you missed to enable the interrupts.

Code: Select all

asm volatile ("sti");
User avatar
Owen
Member
Member
Posts: 1700
Joined: Fri Jun 13, 2008 3:21 pm
Location: Cambridge, United Kingdom
Contact:

Re: Bochs PIT broken?

Post by Owen »

Bochs' PIT is definitely not broken
User avatar
dukedevon
Posts: 21
Joined: Thu Jul 08, 2010 10:02 am
Location: Karlsruhe, Germany
Contact:

Re: Bochs PIT broken?

Post by dukedevon »

cyr1x wrote:Maybe you missed to enable the interrupts.

Code: Select all

asm volatile ("sti");
Shame on me...
That fixed the problem.

I feel kinda dumb after that #-o
FlExOS --- Stay tuned ;-)
Post Reply