mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-01 13:17:19 +08:00
Update.
* sysdeps/powerpc/elf/libc-start.c: no need for a separate function for __aux_init_cache.
This commit is contained in:
parent
abca9f7f58
commit
1e084487ab
@ -1,5 +1,8 @@
|
||||
2004-04-03 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* sysdeps/powerpc/elf/libc-start.c: no need for a separate
|
||||
function for __aux_init_cache.
|
||||
|
||||
* inet/test-ifaddrs.c: Fight warnings.
|
||||
|
||||
* argp/argp-help.c: Fight warnings.
|
||||
|
@ -1,3 +1,7 @@
|
||||
2004-04-03 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* tst-clock2.c (tf): Don't define unless needed.
|
||||
|
||||
2004-03-30 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* Makefile (link-libc-static): Use $(static-gnulib) instead of
|
||||
|
@ -1,3 +1,10 @@
|
||||
2004-04-03 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* td_ta_thr_iter.c (td_ta_thr_iter): Initialize list to avoid warning.
|
||||
* td_ta_clear_event.c (td_ta_clear_event): Initialize eventmask to
|
||||
avoid warning.
|
||||
* td_ta_set_event.c (td_ta_set_event): Likewise.
|
||||
|
||||
2004-03-24 Roland McGrath <roland@redhat.com>
|
||||
|
||||
* fetch-value.c (_td_locate_field): Cast DB_DESC_OFFSET to int32_t.
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1998,2000,2001,2002,2003 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1998,2000,2001,2002,2003,2004 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@ -25,28 +25,6 @@
|
||||
extern int __cache_line_size;
|
||||
weak_extern (__cache_line_size)
|
||||
|
||||
/* Scan the Aux Vector for the "Data Cache Block Size" entry. If found
|
||||
verify that the static extern __cache_line_size is defined by checking
|
||||
for not NULL. If it is defined then assign the cache block size
|
||||
value to __cache_line_size. */
|
||||
static inline void
|
||||
__aux_init_cache (ElfW(auxv_t) *av)
|
||||
{
|
||||
for (; av->a_type != AT_NULL; ++av)
|
||||
switch (av->a_type)
|
||||
{
|
||||
case AT_DCACHEBSIZE:
|
||||
{
|
||||
int *cls = & __cache_line_size;
|
||||
if (cls != NULL)
|
||||
*cls = av->a_un.a_val;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
/* This is used in sysdeps/generic/libc-start.c. */
|
||||
#define AUX_VECTOR_INIT __aux_init_cache
|
||||
|
||||
/* The main work is done in the generic function. */
|
||||
#define LIBC_START_MAIN generic_start_main
|
||||
#define LIBC_START_DISABLE_INLINE
|
||||
@ -104,7 +82,17 @@ BP_SYM (__libc_start_main) (int argc, char *__unbounded *__unbounded ubp_av,
|
||||
}
|
||||
|
||||
/* Initialize the __cache_line_size variable from the aux vector. */
|
||||
__aux_init_cache (auxvec);
|
||||
for (ElfW(auxv_t) *av = auxvec; av->a_type != AT_NULL; ++av)
|
||||
switch (av->a_type)
|
||||
{
|
||||
case AT_DCACHEBSIZE:
|
||||
{
|
||||
int *cls = & __cache_line_size;
|
||||
if (cls != NULL)
|
||||
*cls = av->a_un.a_val;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
return generic_start_main (stinfo->main, argc, ubp_av, auxvec,
|
||||
stinfo->init, stinfo->fini, rtld_fini,
|
||||
|
Loading…
Reference in New Issue
Block a user