0
|
1 |
// Copyright (c) 1995-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 "Eclipse Public License v1.0"
|
|
5 |
// which accompanies this distribution, and is available
|
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
// e32\nklib\arm\armcchelp.cpp
|
|
15 |
//
|
|
16 |
//
|
|
17 |
|
|
18 |
#include "../common.h"
|
|
19 |
#include <nkern.h>
|
|
20 |
|
|
21 |
extern "C" {
|
|
22 |
EXPORT_C int __aeabi_idiv0 (int return_value)
|
|
23 |
{
|
|
24 |
FAULT();
|
|
25 |
return return_value;
|
|
26 |
}
|
|
27 |
|
|
28 |
EXPORT_C long long __aeabi_ldiv0 (long long return_value)
|
|
29 |
{
|
|
30 |
FAULT();
|
|
31 |
return return_value;
|
|
32 |
}
|
|
33 |
|
|
34 |
EXPORT_C int __cxa_pure_virtual()
|
|
35 |
//
|
|
36 |
// Gets called for any unreplaced pure virtual methods.
|
|
37 |
//
|
|
38 |
{
|
|
39 |
#ifdef __STANDALONE_NANOKERNEL__
|
|
40 |
__NK_ASSERT_ALWAYS(0);
|
|
41 |
#else
|
|
42 |
Panic(EPureVirtualCalled);
|
|
43 |
#endif
|
|
44 |
return 0;
|
|
45 |
}
|
|
46 |
|
|
47 |
#ifdef __KERNEL_MODE__
|
|
48 |
|
|
49 |
void __cxa_end_catch(){}
|
|
50 |
|
|
51 |
void __cxa_begin_catch(){}
|
|
52 |
|
|
53 |
void __cxa_rethrow(){}
|
|
54 |
// std::terminate
|
|
55 |
|
|
56 |
void __cxa_call_unexpected() {}
|
|
57 |
|
|
58 |
void __aeabi_unwind_cpp_pr0() {}
|
|
59 |
|
|
60 |
void __cxa_end_cleanup() {}
|
|
61 |
|
|
62 |
#endif
|
|
63 |
}
|
|
64 |
|