kerneltest/e32test/mmu/t_codepaging_dll5.cpp
changeset 0 a41df078684a
equal deleted inserted replaced
-1:000000000000 0:a41df078684a
       
     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_codepaging_dll5.cpp
       
    15 // 
       
    16 //
       
    17 
       
    18 #include "t_codepaging_dll.h"
       
    19 
       
    20 #define C (void*)GetAddressOfRelocatedData
       
    21 #define D (void*)TestData
       
    22 
       
    23 #define A128 C,D,C,D,C,D,C,D,C,D,C,D,C,D,C,D,C,D,C,D,C,D,C,D,C,D,C,D,C,D,C,D
       
    24 #define A1k A128,A128,A128,A128,A128,A128,A128,A128
       
    25 #define A8k A1k,A1k,A1k,A1k,A1k,A1k,A1k,A1k
       
    26 
       
    27 #ifdef CONST_DATA
       
    28 static const void* const TestData[] =
       
    29 #else
       
    30 static const void* TestData[] =
       
    31 #endif
       
    32 	{
       
    33 	A8k,A8k,A8k,A8k,A8k,A8k,A8k,A8k
       
    34 	};
       
    35 
       
    36 const TInt KSizeOfTestData = sizeof(TestData);
       
    37 
       
    38 EXPORT_C void** GetAddressOfRelocatedData(TInt& aSize, void*& aDataValue, void*& aCodeValue)
       
    39 	{
       
    40 	aDataValue = D;
       
    41 	aCodeValue = C;
       
    42 	aSize = KSizeOfTestData;
       
    43 	return (void**)TestData;
       
    44 	}