aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-08-18 19:56:27 +0000
committerRoland McGrath <roland@gnu.org>2002-08-18 19:56:27 +0000
commitb127fa25375feaa9ed71e34bb44851c82feb0b4a (patch)
treede444b46b96dacf9c0031c073a55d1d50f2aa302
parent3ed35099c1f7d96f4048a3d899cba8380f29f914 (diff)
downloadglibc-b127fa25375feaa9ed71e34bb44851c82feb0b4a.tar
glibc-b127fa25375feaa9ed71e34bb44851c82feb0b4a.tar.gz
glibc-b127fa25375feaa9ed71e34bb44851c82feb0b4a.tar.bz2
glibc-b127fa25375feaa9ed71e34bb44851c82feb0b4a.zip
* sysdeps/mach/hurd/dl-sysdep.c
[HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable. [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
-rw-r--r--ChangeLog6
-rw-r--r--sysdeps/mach/hurd/dl-sysdep.c8
2 files changed, 14 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index addf8f2a8a..c93e358313 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2002-08-18 Roland McGrath <roland@frob.com>
+
+ * sysdeps/mach/hurd/dl-sysdep.c
+ [HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
+ [HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
+
2002-08-16 Jakub Jelinek <jakub@redhat.com>
* locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
diff --git a/sysdeps/mach/hurd/dl-sysdep.c b/sysdeps/mach/hurd/dl-sysdep.c
index e1bab501a5..12591167a3 100644
--- a/sysdeps/mach/hurd/dl-sysdep.c
+++ b/sysdeps/mach/hurd/dl-sysdep.c
@@ -54,6 +54,10 @@ int __libc_multiple_libcs = 0; /* Defining this here avoids the inclusion
/* This variable containts the lowest stack address ever used. */
void *__libc_stack_end;
+#if HP_TIMING_AVAIL
+hp_timing_t _dl_cpuclock_offset;
+#endif
+
struct hurd_startup_data *_dl_hurd_data;
@@ -249,6 +253,10 @@ unfmh(); /* XXX */
/* Initialize frequently used global variable. */
GL(dl_pagesize) = __getpagesize ();
+#if HP_TIMING_AVAIL
+ HP_TIMING_NOW (_dl_cpuclock_offset);
+#endif
+
fmh(); /* XXX */
/* See hurd/hurdstartup.c; this deals with getting information