Displaying 2 results from an estimated 2 matches for "__init_stdio".
2014 Apr 09
0
[klibc:master] Move architecture-specific initialization to arch/
...ed, 9 Apr 2014 16:00:01 -0700
[klibc] Move architecture-specific initialization to arch/
Move out architecture-specific initialization code (currently only for
i386) into the arch/ directory and define a configuration variable
_KLIBC_HAS_ARCHINIT to indicate its presence.
For consistency, change __init_stdio() to __libc_init_stdio().
Signed-off-by: H. Peter Anvin <hpa at linux.intel.com>
---
usr/include/arch/i386/klibc/archconfig.h | 3 +++
usr/include/klibc/sysconfig.h | 9 +++++++++
usr/klibc/arch/i386/Kbuild | 2 +-
usr/klibc/arch/i386/archinit.c | 18 +...
2014 Jan 25
0
[klibc:master] auxv: convert auxiliary vector into an array; define getauxval()
....h>
#include "atexit.h"
/* This file is included from __static_init.c or __shared_init.c */
@@ -35,12 +36,14 @@ char **environ;
unsigned int __page_size, __page_shift;
struct auxentry {
- uintptr_t type;
- uintptr_t v;
+ unsigned long type;
+ unsigned long v;
};
extern void __init_stdio(void);
+unsigned long __auxval[_AUXVAL_MAX];
+
__noreturn __libc_init(uintptr_t * elfdata, void (*onexit) (void))
{
int argc;
@@ -76,20 +79,16 @@ __noreturn __libc_init(uintptr_t * elfdata, void (*onexit) (void))
auxentry = (struct auxentry *)(envend + 1);
while (auxentry->type) {
-...