www.a00.de > tcpgroup > 1991 > msg00146
 

TCP-group 1991


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

updated nos on thumper



I've put a new version of NOS on thumper under /pub/ka9q/nos. This
version fixes the problem with the time of day clock sometimes not
increasing monotonically.

It turns out that the command to sample the 8254 timer chip's count
and output state isn't reliable; if you happen to hit the chip just
after the count hits zero, you might catch it before the output has
toggled. I fixed this by simply checking for a zero count and
re-reading the count and output state when this happens.

I also incorporated full assembler implementations of the long
division and multiplication routines used for converting ticks into
milliseconds; they are quite a bit faster than the C routines I had
written initially.

There's a "test" command in this version that calls the msclock()
function 40,000 times and makes sure that the output always increases.
I'd appreciate it if people would try this out on their machines and
let me know of any failures. If the code functions properly, you
should see no output, just a pause of a few seconds. Be sure you have
said "isat on" before running this test.

This version also includes an optimization in the interrupt buffer pool
code. If an interrupt handler frees a buffer that seems to have come
from the interrupt pool and the interrupt pool isn't full, it goes right
back on the pool.

Phil





Document URL : http://www.a00.de/tcpgroup/1991/msg00146.php
Ralf D. Kloth, Ludwigsburg, DE (QRQ.software). < hostmaster at a00.de > [don't send spam]
Created 2004-12-21. Last modified 2004-12-21. Your visit 2024-12-26 11:10.06. Page created in 0.023 sec.
 
[Go to the top of this page]   [... to the index page]