First public contribution.
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "ARM EABI LICENCE.txt"
5 // which accompanies this distribution, and is available
6 // in kernel/eka/compsupp.
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // This file is part of drtrvct.dll and drtrvct_vfpv2.dll.
19 #include <e32std_private.h>
24 EXPORT_C void _fp_init()
28 EXPORT_C TAny * __rt_fp_status_addr()
30 TAny* aTls = Dll::Tls();
35 // If this is the first time we are called we need to set up some TLS for
36 // the FP status word.
38 TUint32* aReg = (TUint32*)User::AllocZ(sizeof(TUint32));
40 _LIT(KFpGeneralPanic, "FP Emulator");
44 TInt r = Dll::SetTls(aReg);
48 // if we get here we really in trouble. Just Panic.
49 User::Panic(KFpGeneralPanic, KErrGeneral);
53 // If we get here, we're toast anyway....
54 User::Panic(KFpGeneralPanic, KErrNoMemory);