Implemented GetHiResClock() for HP-UX.
authorwtc%netscape.com
Sun, 27 Jan 2002 05:08:43 +0000
changeset 2204 1521739827af30a7c8fb4ccae6e18201c942b1a2
parent 2203 3e458eac55a924b881c5c7840bf1b47cb1663d8e
child 2207 e19c5632dbfb503806cc44521ca746f1a98f2849
push idunknown
push userunknown
push dateunknown
Implemented GetHiResClock() for HP-UX.
pr/src/md/unix/uxrng.c
--- a/pr/src/md/unix/uxrng.c
+++ b/pr/src/md/unix/uxrng.c
@@ -60,20 +60,25 @@ static size_t
 GetHighResClock(void *buf, size_t maxbytes)
 {
     return 0;
 }
 
 #elif defined(HPUX)
 
 #ifdef __ia64
+#include <ia64/sys/inline.h>
+
 static size_t
 GetHighResClock(void *buf, size_t maxbytes)
 {
-    return 0;
+    PRUint64 t;
+
+    t = _Asm_mov_from_ar(_AREG44);
+    return _pr_CopyLowBits(buf, maxbytes, &t, sizeof(t));
 }
 #else
 static size_t
 GetHighResClock(void *buf, size_t maxbytes)
 {
     extern int ret_cr16();
     int cr16val;