Page 1 of 1

Bochs PIT broken? [solved]

Posted: Mon Jul 19, 2010 8:13 am
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

Re: Bochs PIT broken?

Posted: Mon Jul 19, 2010 8:29 am
by cyr1x
Maybe you missed to enable the interrupts.

Code: Select all

asm volatile ("sti");

Re: Bochs PIT broken?

Posted: Mon Jul 19, 2010 8:30 am
by Owen
Bochs' PIT is definitely not broken

Re: Bochs PIT broken?

Posted: Mon Jul 19, 2010 8:41 am
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