1 /*---------------------------------------------------------------------------*
2
3 Copyright (C) Nintendo. All rights reserved.
4
5 These coded instructions, statements, and computer programs contain
6 proprietary information of Nintendo of America Inc. and/or Nintendo
7 Company Ltd., and are protected by Federal copyright law. They may
8 not be disclosed to third parties or copied or duplicated in any form,
9 in whole or in part, without the prior written consent of Nintendo.
10
11 *---------------------------------------------------------------------------*/
12 #include <cafe/os.h>
13 #include <string.h>
14
15 static int malloc_force_include_memset = 0;
16 static int malloc_force_include_memcpy = 0;
17
rpl_entry(void * p,int i)18 int rpl_entry(void *p, int i)
19 {
20 if (i == 0xcafedead) {
21 /* force include of memset and memcpy, so it will be defined when malloc is pulled in */
22 memset(&malloc_force_include_memset, 0, sizeof(malloc_force_include_memset));
23 memcpy(&malloc_force_include_memcpy, &malloc_force_include_memset, sizeof(malloc_force_include_memcpy));
24 }
25 return 0;
26 }
27