Initialize the libc user trap handlers before passing control non-startup

code, so that the userland fp emulator will work.
This commit is contained in:
Thomas Moestl 2002-02-23 21:47:20 +00:00
parent 4895e965c3
commit 30d514918a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=91175

View file

@ -45,6 +45,7 @@ extern int _DYNAMIC;
extern void _init(void);
extern void _fini(void);
extern int main(int, char **, char **);
extern void __sparc64_utrap_setup(void);
#ifdef GCRT
extern void _mcleanup(void);
@ -97,6 +98,7 @@ _start(char **ap,
__progname = s + 1;
}
__sparc_utrap_setup();
#if 0
/*
* If the kernel or a shared library wants us to call