sl@0: // Copyright (c) 2005-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: // sl@0: sl@0: #include 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 intruction 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" __NAKED__ void make_mem_functions_call_euser_versions() sl@0: { sl@0: asm(".global __aeabi_memset8 "); sl@0: asm("__aeabi_memset8: "); sl@0: asm(".global __aeabi_memset4 "); sl@0: asm("__aeabi_memset4: "); sl@0: asm(".global __aeabi_memset "); sl@0: asm("__aeabi_memset: "); sl@0: asm(" mov r3, r1 "); sl@0: asm(" mov r1, r2 "); sl@0: asm(" mov r2, r3 "); sl@0: asm(" b memset "); sl@0: sl@0: asm(".global __aeabi_memclr8 "); sl@0: asm("__aeabi_memclr8: "); sl@0: asm(".global __aeabi_memclr4 "); sl@0: asm("__aeabi_memclr4: "); sl@0: asm(".global __aeabi_memclr "); sl@0: asm("__aeabi_memclr: "); sl@0: asm(" b memclr "); sl@0: sl@0: asm(".global __aeabi_memcpy8 "); sl@0: asm("__aeabi_memcpy8: "); sl@0: asm(".global __aeabi_memcpy4 "); sl@0: asm("__aeabi_memcpy4: "); sl@0: asm(".global __aeabi_memcpy "); sl@0: asm("__aeabi_memcpy: "); sl@0: asm(" b memcpy "); sl@0: sl@0: asm(".global __aeabi_memmove8 "); sl@0: asm("__aeabi_memmove8: "); sl@0: asm(".global __aeabi_memmove4 "); sl@0: asm("__aeabi_memmove4: "); sl@0: asm(".global __aeabi_memmove "); sl@0: asm("__aeabi_memmove: "); sl@0: asm(" b memmove "); sl@0: }