kerneltest/e32test/mmu/t_wsd_tst.h
branchRCL_3
changeset 21 e7d2d738d3c2
child 43 c1f20ce4abcf
equal deleted inserted replaced
20:597aaf25e343 21:e7d2d738d3c2
       
     1 // Copyright (c) 2006-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 // e32test\mmu\t_wsd_tst.h
       
    15 //
       
    16 
       
    17 #include <e32std.h>
       
    18 #include <e32debug.h>
       
    19 
       
    20 #ifndef __T_WSD_TST_H__
       
    21 #define __T_WSD_TST_H__
       
    22 
       
    23 #if		defined(__MARM_ARM4__)
       
    24 // ARM4: definition of IMPORT_D is wrong?
       
    25 #undef	IMPORT_D
       
    26 #define	IMPORT_D	 __declspec(dllimport)
       
    27 #endif	// defined(__MARM_ARM4__)
       
    28 
       
    29 #if		defined(__MARM_ARMV5__)
       
    30 // ARMV5: definition of IMPORT_D is wrong?
       
    31 #undef	IMPORT_D
       
    32 #define	IMPORT_D	 __declspec(dllimport)
       
    33 #endif	// defined(__MARM_ARMV5__)
       
    34 
       
    35 #if		defined(__MSVC6__)
       
    36 // MSVC6: definition of IMPORT_D is wrong?
       
    37 #undef	IMPORT_D
       
    38 #define	IMPORT_D	 __declspec(dllimport)
       
    39 #endif	// defined(__MSVC6__)
       
    40 
       
    41 #if		defined(__WINS__)
       
    42 // WINSCW: definition of IMPORT_D is wrong?
       
    43 #undef	IMPORT_D
       
    44 #define	IMPORT_D	 __declspec(dllimport)
       
    45 #endif	// defined(__WINS__)
       
    46 
       
    47 // Exports of DLL1
       
    48 #ifdef	T_WSD_DL1
       
    49 #else
       
    50 IMPORT_D TInt32 ExportedData;
       
    51 IMPORT_C TInt CheckExportedDataAddress(void *aDataAddr);
       
    52 #endif	// T_WSD_DL1
       
    53 
       
    54 // Exports of DLL2
       
    55 #ifdef	T_WSD_DL2
       
    56 #else
       
    57 typedef void** (*TGetAddressOfDataFunction)(TInt&, void*&, void*&);
       
    58 const TInt KGetAddressOfDataFunctionOrdinal = 1;
       
    59 IMPORT_C void** GetAddressOfDataProxy(TInt& aSize, void*& aCodeAddr, void*& aDataAddr);
       
    60 const TInt KCheckWritableStaticDataFunctionOrdinal = 2;
       
    61 IMPORT_C TInt CheckWritableStaticData(void);
       
    62 #endif	// T_WSD_DL2
       
    63 
       
    64 // Exports of DLL3
       
    65 #ifdef	T_WSD_DL3
       
    66 #else
       
    67 IMPORT_C void** GetAddressOfData(TInt& aSize, void*& aCodeAddr, void*& aDataAddr);
       
    68 IMPORT_D TInt32 TestDataSize;
       
    69 IMPORT_D void* WritableTestData[1 /* refer TestDataSize */];
       
    70 IMPORT_D const void* const* PointerToStaticData;
       
    71 IMPORT_D void** PointerToWritableData;
       
    72 #endif	// T_WSD_DL3
       
    73 
       
    74 #endif	// __T_WSD_TST_H__