equal
  deleted
  inserted
  replaced
  
    
    
|         |      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 usrt.lib and ksrt.lib. | 
|         |     16 * | 
|         |     17 */ | 
|         |     18  | 
|         |     19  | 
|         |     20  | 
|         |     21 extern "C" __asm void __cpp_initialize__aeabi_() | 
|         |     22     { | 
|         |     23     CODE32 | 
|         |     24  | 
|         |     25     IMPORT |SHT$$INIT_ARRAY$$Base|  [WEAK] | 
|         |     26     IMPORT |SHT$$INIT_ARRAY$$Limit| [WEAK] | 
|         |     27  | 
|         |     28     // Export std::nothrow from here. | 
|         |     29     EXPORT    _ZSt7nothrow | 
|         |     30      | 
|         |     31  | 
|         |     32     STMFD    r13!,{r3-r5,r14} | 
|         |     33  | 
|         |     34  | 
|         |     35     LDR      r4,base | 
|         |     36     LDR      r5,limit | 
|         |     37     CMP      r4,r5 | 
|         |     38      | 
|         |     39     // Exit if the array is empty. | 
|         |     40     LDMEQFD  r13!,{r3-r5,pc} | 
|         |     41  | 
|         |     42 loop | 
|         |     43     LDR      r0,[r4,#0] | 
|         |     44     #if __ARMCC_VERSION > 300000 | 
|         |     45     ADD      r0,r0,r4 | 
|         |     46     #endif | 
|         |     47  | 
|         |     48 #ifdef __MARM_ARMV4__ | 
|         |     49     ADR      r14,ret | 
|         |     50     MOV      pc,r0 | 
|         |     51 #else | 
|         |     52     BLX      r0 | 
|         |     53 #endif | 
|         |     54  | 
|         |     55 ret | 
|         |     56     ADD      r4,r4,#4 | 
|         |     57     CMP      r4,r5 | 
|         |     58     BNE      loop | 
|         |     59     LDMFD    r13!,{r3-r5,pc} | 
|         |     60  | 
|         |     61 base | 
|         |     62     DCD    |SHT$$INIT_ARRAY$$Base| | 
|         |     63 limit | 
|         |     64     DCD    |SHT$$INIT_ARRAY$$Limit| | 
|         |     65  | 
|         |     66 _ZSt7nothrow | 
|         |     67     } | 
|         |     68  |