williams@umaxc.weeg.uiowa.edu (Kent Williams) (02/14/90)
PROBLEM: readclock wouldn't SYMPTOM: readclock always printed '-q' I tore my hair out for a while, thinking that /dev/port was broken. Then I looked at readclock.c, and found out the REAL problem was that my AT clone didn't have the proper signature in the ROM. Solution: Comment out the test at the beginning of main for whether or not readclock is running on an AT. Discussion: I think that portio.c is a little hokey, and would be dreadful if you ever had to do REAL I/O. Why not have a library function that asks for the I/O Priveledge bit to be set in the task state segment, and then do real I/O? -- Kent Williams "What's an Address Bus? How do Icons work?" williams@umaxc.weeg.uiowa.edu -- Advertisement for Time-Life Books