Random number generator

This commit is contained in:
Philip Homburg
2005-07-18 15:40:24 +00:00
parent 3eb405c3bf
commit 7d4e914618
20 changed files with 3739 additions and 36 deletions

View File

@@ -297,11 +297,11 @@ PUBLIC unsigned long read_clock()
*/
unsigned count;
lock(10, "read_clock");
/* lock(10, "read_clock"); */
outb(TIMER_MODE, LATCH_COUNT);
count = inb(TIMER0);
count |= (inb(TIMER0) << 8);
unlock(10);
/* unlock(10); */
return count;
}