os/kernelhwsrv/bsptemplate/asspandvariant/template_variant/replacement_utils/common.cia
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 2005-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 // template\template_variant\replacement_utils\common.cia
    15 // 
    16 //
    17 
    18 #include <replacement_utils.h>
    19 #include <e32cmn.h>
    20 #include <cpudefs.h>
    21 #include <e32cia.h>
    22 
    23 #if defined(__MEM_MACHINE_CODED__)
    24 
    25 #ifdef USE_REPLACEMENT_MEMSET
    26 
    27 extern "C" EXPORT_C __NAKED__ TAny* memclr(TAny* /*aTrg*/, unsigned int /*aLength*/)
    28 	{
    29 	KMEMCLRHOOK
    30 	// TO DO (optional): Implement replacement memclr
    31 	}
    32 
    33 extern "C" EXPORT_C __NAKED__ TAny* memset(TAny* /*aTrg*/, TInt /*aValue*/, unsigned int /*aLength*/)
    34     {
    35     KMEMSETHOOK
    36 	// TO DO (optional): Implement replacement memset
    37     }
    38 
    39 #endif  // USE_REPLACEMENT_MEMSET
    40 
    41 #ifdef USE_REPLACEMENT_MEMCPY
    42 
    43 extern "C" EXPORT_C __NAKED__ TAny* wordmove(TAny* /*aTrg*/, const TAny* /*aSrc*/, unsigned int /*aLength*/)
    44     {
    45 	// TO DO (optional): Implement replacement wordmove
    46 	}
    47 
    48 extern "C" EXPORT_C __NAKED__ TAny* memmove(TAny* /*aTrg*/, const TAny* /*aSrc*/, unsigned int /*aLength*/)
    49 	{
    50 	KMEMMOVEHOOK
    51 	// TO DO (optional): Implement replacement memmove
    52 	}
    53 
    54 extern "C" EXPORT_C __NAKED__ TAny* memcpy(TAny* /*aTrg*/, const TAny* /*aSrc*/, unsigned int /*aLength*/)
    55     {
    56     KMEMCPYHOOK
    57 	// TO DO (optional): Implement replacement memcpy
    58 	}
    59 
    60 #endif  // USE_REPLACEMENT_MEMCPY
    61 
    62 #endif  // __MEM_MACHINE_CODED__