kernel/eka/compsupp/rvct/drtaeabi.cpp
changeset 9 96e5fb8b040d
child 10 36bfc973b146
equal deleted inserted replaced
-1:000000000000 9:96e5fb8b040d
       
     1 /*
       
     2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 * This file is part of drtaeabi.dll.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #include <e32std.h>
       
    22 #include <e32panic.h>
       
    23 
       
    24 extern "C" {
       
    25 
       
    26 EXPORT_C void abort()
       
    27     { 
       
    28     User::RaiseException(EExcAbort);
       
    29     }
       
    30 
       
    31 EXPORT_C void __cxa_pure_virtual()
       
    32     {
       
    33     User::Panic( _L("Pure virtual"), EPureVirtualCalled );
       
    34     }
       
    35 
       
    36 #if __ARMCC_VERSION < 300000 
       
    37 IMPORT_C void* __get_typeid(void*);
       
    38 EXPORT_C void* __ARM_get_typeid(void* p)
       
    39 	{
       
    40 	return __get_typeid(p);
       
    41 	}
       
    42 #endif
       
    43 
       
    44 } // extern "C"
       
    45 
       
    46 
       
    47 //
       
    48 // Create the type_info object for void.
       
    49 //
       
    50 
       
    51 extern const char * const  $Sub$$_ZTSv = "v";
       
    52 
       
    53 __asm void __rt_exporter_dummy()
       
    54 	{
       
    55 	IMPORT _ZTVN10__cxxabiv123__fundamental_type_infoE [DYNAMIC]
       
    56 	IMPORT _ZTSv
       
    57 
       
    58     #if __ARMCC_VERSION < 300000
       
    59 	EXPORT |$Sub$$_ZTIv|
       
    60     #else
       
    61 	EXPORT |$Sub$$_ZTIv| [DYNAMIC]
       
    62     #endif
       
    63 
       
    64 |$Sub$$_ZTIv|
       
    65 
       
    66 	DCD _ZTVN10__cxxabiv123__fundamental_type_infoE
       
    67 	DCD _ZTSv
       
    68 	}
       
    69 
       
    70 #if __ARMCC_VERSION > 400000
       
    71 asm void __symbian_prevent_export()
       
    72 	{
       
    73     IMPORT __rt_uread4
       
    74     IMPORT __rt_uread8
       
    75     IMPORT __rt_uwrite4
       
    76     IMPORT __rt_uwrite8
       
    77     IMPORT _ll_mul
       
    78     IMPORT _ll_scmp
       
    79     IMPORT _ll_sdiv
       
    80     IMPORT _ll_shift_l
       
    81     IMPORT _ll_sshift_r
       
    82     IMPORT _ll_ucmp
       
    83     IMPORT _ll_udiv
       
    84     IMPORT _ll_udiv_donemoving
       
    85     IMPORT _ll_ushift_r
       
    86 
       
    87     IMPORT __ARM_array_delete_general
       
    88     IMPORT __ARM_array_new_general
       
    89     IMPORT __ARM_vec_cleanup_rethrow
       
    90 	}
       
    91 #endif
       
    92