sl@0: // Copyright (c) 2008-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 "ARM EABI LICENCE.txt" sl@0: // which accompanies this distribution, and is available sl@0: // in kernel/eka/compsupp. sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // This file is part of drtaeabi.dll. sl@0: // sl@0: // sl@0: sl@0: #include sl@0: sl@0: sl@0: // Call our implementations of memcpy/move/set/clr rather than the ARM supplied sl@0: // ones. sl@0: // sl@0: // Note that the AEABI switched the order of arg2 and arg3 to save an instruction sl@0: // when calling 'memset' from 'memclr'. sl@0: // sl@0: // Prototypes are: sl@0: // void __aeabi_memset8(TAny* aTrg, unsigned int aLength, TInt aValue); sl@0: // void __aeabi_memset4(TAny* aTrg, unsigned int aLength, TInt aValue); sl@0: // void __aeabi_memset(TAny* aTrg, unsigned int aLength, TInt aValue); sl@0: sl@0: extern "C" __asm void make_mem_functions_call_euser_versions() sl@0: { sl@0: CODE32 sl@0: sl@0: IMPORT memset [DYNAMIC] sl@0: IMPORT memclr [DYNAMIC] sl@0: IMPORT memcpy [DYNAMIC] sl@0: IMPORT memmove [DYNAMIC] sl@0: sl@0: EXPORT __aeabi_memset [DYNAMIC] sl@0: EXPORT __aeabi_memset4 [DYNAMIC] sl@0: EXPORT __aeabi_memset8 [DYNAMIC] sl@0: EXPORT __aeabi_memclr [DYNAMIC] sl@0: EXPORT __aeabi_memclr4 [DYNAMIC] sl@0: EXPORT __aeabi_memclr8 [DYNAMIC] sl@0: EXPORT __aeabi_memcpy [DYNAMIC] sl@0: EXPORT __aeabi_memcpy4 [DYNAMIC] sl@0: EXPORT __aeabi_memcpy8 [DYNAMIC] sl@0: EXPORT __aeabi_memmove [DYNAMIC] sl@0: EXPORT __aeabi_memmove4 [DYNAMIC] sl@0: EXPORT __aeabi_memmove8 [DYNAMIC] sl@0: sl@0: __aeabi_memset sl@0: __aeabi_memset4 sl@0: __aeabi_memset8 sl@0: mov r3, r1 sl@0: mov r1, r2 sl@0: mov r2, r3 sl@0: b memset sl@0: sl@0: __aeabi_memclr8 sl@0: __aeabi_memclr4 sl@0: __aeabi_memclr sl@0: b memclr sl@0: sl@0: __aeabi_memcpy8 sl@0: __aeabi_memcpy4 sl@0: __aeabi_memcpy sl@0: b memcpy sl@0: sl@0: __aeabi_memmove8 sl@0: __aeabi_memmove4 sl@0: __aeabi_memmove sl@0: b memmove sl@0: } sl@0: