From: Roland McGrath Date: Sun, 18 Aug 2002 19:55:38 +0000 (+0000) Subject: 2002-08-18 Roland McGrath X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a42c042d3e53ae0a93daa28e783fe1593582bfe;p=thirdparty%2Fglibc.git 2002-08-18 Roland McGrath * 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. --- diff --git a/sysdeps/mach/hurd/dl-sysdep.c b/sysdeps/mach/hurd/dl-sysdep.c index 644edeedb50..98e356eda9a 100644 --- a/sysdeps/mach/hurd/dl-sysdep.c +++ b/sysdeps/mach/hurd/dl-sysdep.c @@ -53,7 +53,9 @@ int __libc_multiple_libcs = 0; /* Defining this here avoids the inclusion /* This variable containts the lowest stack address ever used. */ void *__libc_stack_end; unsigned long int _dl_hwcap_mask = HWCAP_IMPORTANT; - +#if HP_TIMING_AVAIL +hp_timing_t _dl_cpuclock_offset; +#endif struct hurd_startup_data *_dl_hurd_data; @@ -238,6 +240,10 @@ unfmh(); /* XXX */ /* Initialize frequently used global variable. */ _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