summaryrefslogtreecommitdiffstats
path: root/lib/csu/sparc64
diff options
context:
space:
mode:
authortmm <tmm@FreeBSD.org>2002-02-23 21:47:20 +0000
committertmm <tmm@FreeBSD.org>2002-02-23 21:47:20 +0000
commite7deebe9ff72c826adcce8c4f6b1f5b322cd1347 (patch)
tree1b6c373da1b4531f07c245beff56530e76cbfb28 /lib/csu/sparc64
parentc0c8cd1eeb0ccc26410fb3536db0d3d58824d398 (diff)
downloadFreeBSD-src-e7deebe9ff72c826adcce8c4f6b1f5b322cd1347.zip
FreeBSD-src-e7deebe9ff72c826adcce8c4f6b1f5b322cd1347.tar.gz
Initialize the libc user trap handlers before passing control non-startup
code, so that the userland fp emulator will work.
Diffstat (limited to 'lib/csu/sparc64')
-rw-r--r--lib/csu/sparc64/crt1.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/csu/sparc64/crt1.c b/lib/csu/sparc64/crt1.c
index 311fec5..a2e94a3 100644
--- a/lib/csu/sparc64/crt1.c
+++ b/lib/csu/sparc64/crt1.c
@@ -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
OpenPOWER on IntegriCloud