kernel/eka/compsupp/rvct3_1/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 <e32std_private.h>
       
    23 #include <e32panic.h>
       
    24 
       
    25 extern "C" {
       
    26 
       
    27 // Import these functions from drtrvct.dll.
       
    28 IMPORT_C int __rt_raise(int signal, int type);
       
    29 IMPORT_C int __rt_exit(int aReturnCode);
       
    30 
       
    31 int raise(int signal)
       
    32     { 
       
    33     return __rt_raise(signal, 0); 
       
    34     }
       
    35 
       
    36 EXPORT_C void abort(int signal)
       
    37     { 
       
    38     __rt_raise(signal, 1); 
       
    39     __rt_exit(1);
       
    40     }
       
    41 
       
    42 EXPORT_C void __cxa_pure_virtual()
       
    43     {
       
    44     User::Panic( _L("Pure virtual"), EPureVirtualCalled );
       
    45     }
       
    46 
       
    47 } // extern "C"
       
    48 
       
    49 
       
    50 //
       
    51 // Create the type_info object for void.
       
    52 //
       
    53 
       
    54 extern char * _ZTVN10__cxxabiv123__fundamental_type_infoE;
       
    55 extern const char * const  $Sub$$_ZTSv = "v";
       
    56 
       
    57 __asm void __rt_exporter_dummy()
       
    58 {
       
    59     EXTERN _ZTVN10__cxxabiv123__fundamental_type_infoE
       
    60     EXTERN _ZTSv
       
    61     EXPORT |$Sub$$_ZTIv|
       
    62 
       
    63 |$Sub$$_ZTIv|
       
    64 
       
    65     DCD _ZTVN10__cxxabiv123__fundamental_type_infoE
       
    66     DCD _ZTSv
       
    67 }
       
    68