1 /*---------------------------------------------------------------------------*
2 Project: TwlSDK - libraries - stubs - istd
3 File: stubs_istd.c
4
5 Copyright 2007-2008 Nintendo. All rights reserved.
6
7 These coded instructions, statements, and computer programs contain
8 proprietary information of Nintendo of America Inc. and/or Nintendo
9 Company Ltd., and are protected by Federal copyright law. They may
10 not be disclosed to third parties or copied or duplicated in any form,
11 in whole or in part, without the prior written consent of Nintendo.
12
13 $Date:: 2008-09-17#$
14 $Rev: 8556 $
15 $Author: okubata_ryoma $
16 *---------------------------------------------------------------------------*/
17
18 #include <nitro.h>
19
20 /*---------------------------------------------------------------------------*
21 Function prototype for IS TWL Debugger Console Functions
22 *---------------------------------------------------------------------------*/
23 typedef enum {
24 OVERLAYPROC_ARM9,
25 OVERLAYPROC_ARM7
26 } OVERLAYPROC;
27 typedef enum {
28 ISTDOVERLAYPROC_ARM9,
29 ISTDOVERLAYPROC_ARM7
30 } ISTDOVERLAYPROC;
31
32 void ISTDPrint(const char*);
33 void ISTDPrintf(const char*, ...);
34 void ISTDPrintEx(int, const char*);
35 void ISTDPrintfEx(int, const char*, ...);
36 void ISTDAssert(const char*, int, const char*, int);
37 void _ISTDbgLib_Initialize(void);
38 void _ISTDbgLib_AllocateEmualtor(void);
39 void _ISTDbgLib_FreeEmulator(void);
40 int _ISTDbgLib_RegistOverlayInfo( OVERLAYPROC, u32, u32, u32, u32);
41 int _ISTDbgLib_UnregistOverlayInfo( OVERLAYPROC, u32, u32 );
42 int _ISTDbgLib_IsDebuggerPresent(void);
43 void _ISTDbgLib_OnLoadChildBinary(void);
44 BOOL _ISTDbgLib_RegistOverlayInfoByAddr(ISTDOVERLAYPROC, u32, u32, u32, u32);
45 BOOL _ISTDbgLib_UnregistOverlayInfoByAddr(ISTDOVERLAYPROC, u32, u32);
46 #ifdef SDK_ARM9
47 void _ISTDbgLib_OnBeforeResetHard(void);
48 #endif // SDK_ARM9
49
50
51 /*---------------------------------------------------------------------------*
52 Dummy Function for IS TWL Debugger Console Functions
53 *---------------------------------------------------------------------------*/
ISTDPrint(const char *)54 SDK_WEAK_SYMBOL void ISTDPrint(const char*)
55 {
56 }
57
ISTDPrintf(const char *,...)58 SDK_WEAK_SYMBOL void ISTDPrintf(const char*, ...)
59 {
60 }
61
ISTDPrintEx(int,const char *)62 SDK_WEAK_SYMBOL void ISTDPrintEx(int, const char*)
63 {
64 }
65
ISTDPrintfEx(int,const char *,...)66 SDK_WEAK_SYMBOL void ISTDPrintfEx(int, const char*, ...)
67 {
68 }
69
ISTDAssert(const char *,int,const char *,int)70 SDK_WEAK_SYMBOL void ISTDAssert(const char*, int, const char*, int)
71 {
72 }
73
_ISTDbgLib_Initialize(void)74 SDK_WEAK_SYMBOL void _ISTDbgLib_Initialize(void)
75 {
76 }
_ISTDbgLib_AllocateEmualtor(void)77 SDK_WEAK_SYMBOL void _ISTDbgLib_AllocateEmualtor(void)
78 {
79 }
80
_ISTDbgLib_FreeEmulator(void)81 SDK_WEAK_SYMBOL void _ISTDbgLib_FreeEmulator(void)
82 {
83 }
84
_ISTDbgLib_RegistOverlayInfo(OVERLAYPROC,u32,u32,u32,u32)85 SDK_WEAK_SYMBOL int _ISTDbgLib_RegistOverlayInfo( OVERLAYPROC, u32, u32, u32, u32)
86 {
87 return 1;
88 }
89
_ISTDbgLib_UnregistOverlayInfo(OVERLAYPROC,u32,u32)90 SDK_WEAK_SYMBOL int _ISTDbgLib_UnregistOverlayInfo( OVERLAYPROC, u32, u32)
91 {
92 return 1;
93 }
94
_ISTDbgLib_RegistOverlayInfoByAddr(ISTDOVERLAYPROC,u32,u32,u32,u32)95 SDK_WEAK_SYMBOL BOOL _ISTDbgLib_RegistOverlayInfoByAddr(ISTDOVERLAYPROC, u32, u32, u32, u32)
96 {
97 return TRUE;
98 }
99
_ISTDbgLib_UnregistOverlayInfoByAddr(ISTDOVERLAYPROC,u32,u32)100 SDK_WEAK_SYMBOL BOOL _ISTDbgLib_UnregistOverlayInfoByAddr(ISTDOVERLAYPROC, u32, u32)
101 {
102 return TRUE;
103 }
104
_ISTDbgLib_IsDebuggerPresent(void)105 SDK_WEAK_SYMBOL int _ISTDbgLib_IsDebuggerPresent(void)
106 {
107 return 1;
108 }
109
_ISTDbgLib_OnLoadChildBinary(void)110 SDK_WEAK_SYMBOL void _ISTDbgLib_OnLoadChildBinary(void)
111 {
112 }
113
114 #ifdef SDK_ARM9
_ISTDbgLib_OnBeforeResetHard(void)115 SDK_WEAK_SYMBOL void _ISTDbgLib_OnBeforeResetHard(void)
116 {
117 }
118 #endif // SDK_ARM9
119
120