From: dsiebert@icaen.uiowa.edu (Doug Siebert)
Subject: Re: Accessing Real Time Clock in workstations (HPs, Suns, Dec Alphas)
Date: Wed, 26 Jan 1994 00:57:00 GMT [thread overview]
Message-ID: <1994Jan26.005700.2572@icaen.uiowa.edu> (raw)
In-Reply-To: mk9krlINNna0@appserv.Eng.Sun.COM
barts@cyber.Eng.Sun.COM (Bart Smaalders) writes:
><Someone is looking for a hardware timer and doesn't believe Solaris 2.[23]
> gettimeofday is adequate>
>Gettimeoday(2) is implemented as a fast trap since Solaris 2.2. As a result,
>this call takes about 2->3 microseconds on a SS10 (slightly more on an SS2).
>It returns answers accurate to the resolution of the hardware clock (1 microsecond
>on 4[cmd] platforms).
Could someone explain to me exactly WHY this has to be a system call at all?
It seems to me it would make a GREAT deal of sense to map things like the
hardware clock into a process' address space read-only. Then you don't need
a system call, or a fast trap, just a simple function call (or perhaps a
millicode stub on the HP) Many things could benefit here, the whole UAREA of
a process could be mapped read-only without negative effects, I'd think. Then
getpid() isn't a system call, getuid() isn't, etc., etc. Is there a reason
why this isn't done?
Doug Siebert || dsiebert@isca.uiowa.edu || Defeat Usenet spool grepping!
Kibo Turkey Greece Macedonia Perl Watcom Mason Clinton Illuminati Fnord Hastur
next prev parent reply other threads:[~1994-01-26 0:57 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-01-20 20:40 Accessing Real Time Clock in workstations (HPs, Suns, Dec Alphas) NeoSwami
1994-01-20 21:42 ` Paul Gootherts
1994-01-21 12:23 ` Kell S|nnichsen
1994-01-21 15:48 ` john.j.rushford..jr
1994-01-21 19:25 ` Guy Harris
1994-01-24 17:12 ` Benjamin Z. Goldsteen
1994-01-25 8:08 ` Bart Smaalders
1994-01-25 18:42 ` Bob Manchek
1994-01-26 0:57 ` Doug Siebert [this message]
1994-01-26 8:11 ` Casper H.S. Dik
1994-01-27 4:07 ` Greg Limes
1994-01-29 5:07 ` mark hahn
1994-01-21 16:59 ` Bart Smaalders
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox