Path: utzoo!attcan!uunet!ns-mx!umaxc.weeg.uiowa.edu!williams From: williams@umaxc.weeg.uiowa.edu (Kent Williams) Newsgroups: comp.os.minix Subject: readclock problem, and solution Keywords: readclock AT Message-ID: <646@ns-mx.uiowa.edu> Date: 14 Feb 90 15:03:42 GMT Sender: news@ns-mx.uiowa.edu Reply-To: williams@umaxc.weeg.uiowa.edu (Kent Williams) Followup-To: /dev/null Organization: U of Iowa, Iowa City, IA Lines: 23 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