Make working gettimeofday() for Mac OS X.
authorGeorge Koehler <xkernigh@netscape.net>
Wed, 23 Nov 2016 18:25:55 +0000 (13:25 -0500)
committerGeorge Koehler <xkernigh@netscape.net>
Wed, 23 Nov 2016 18:25:55 +0000 (13:25 -0500)
commitb6b707d9df40d8bdebce51281d610f264f03e0d9
tree39c5c8e9a2ae543ab074a153595245f4b0716b65
parent98f2273d97b85f55aa950b1d439714c054cf2d32
Make working gettimeofday() for Mac OS X.

The system call puts the time in a pair of registers, not in the
timeval structure.  Add code to move the time to the structure, so
programs see the correct time, not garbage.  This fixes our example
programs that use the time as a random seed.
plat/osx386/libsys/gettimeofday.s
plat/osxppc/libsys/gettimeofday.s