PIT problems
Posted: Fri Jul 22, 2005 11:00 pm
Hi, I have problem with PIT (8254 chipset).
If i add: for(i = 0; i < 99999; i++) to the irq0 handler, After few seconds, computer is restarting,
If I don't add this loop all is ok - scheduler works, etc..
But if I put function that executes longer than standard scheduler (example long loop) computer frezzed or restarting or screen is clearing (memory errors - i think).
Timer is sets on 100HZ.
<----------------
This look that:
PIT tick 0*******->*****PIT tick 1****->*****PIT tick 2...
**********|Function1|************|Function2 with loooop|
First function fit between two next pit ticks, but second functin don't fit and occured computer restart
(I've disabled irqs)
If i add: for(i = 0; i < 99999; i++) to the irq0 handler, After few seconds, computer is restarting,
If I don't add this loop all is ok - scheduler works, etc..
But if I put function that executes longer than standard scheduler (example long loop) computer frezzed or restarting or screen is clearing (memory errors - i think).
Timer is sets on 100HZ.
<----------------
This look that:
PIT tick 0*******->*****PIT tick 1****->*****PIT tick 2...
**********|Function1|************|Function2 with loooop|
First function fit between two next pit ticks, but second functin don't fit and occured computer restart
(I've disabled irqs)