sl@0: // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of the License "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // e32test\mmu\t_codepaging_dll5.cpp sl@0: // sl@0: // sl@0: sl@0: #include "t_codepaging_dll.h" sl@0: sl@0: #define C (void*)GetAddressOfRelocatedData sl@0: #define D (void*)TestData sl@0: sl@0: #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 sl@0: #define A1k A128,A128,A128,A128,A128,A128,A128,A128 sl@0: #define A8k A1k,A1k,A1k,A1k,A1k,A1k,A1k,A1k sl@0: sl@0: #ifdef CONST_DATA sl@0: static const void* const TestData[] = sl@0: #else sl@0: static const void* TestData[] = sl@0: #endif sl@0: { sl@0: A8k,A8k,A8k,A8k,A8k,A8k,A8k,A8k sl@0: }; sl@0: sl@0: const TInt KSizeOfTestData = sizeof(TestData); sl@0: sl@0: EXPORT_C void** GetAddressOfRelocatedData(TInt& aSize, void*& aDataValue, void*& aCodeValue) sl@0: { sl@0: aDataValue = D; sl@0: aCodeValue = C; sl@0: aSize = KSizeOfTestData; sl@0: return (void**)TestData; sl@0: }