@@ -51,8 +51,6 @@ extern char _codeSegmentTextStart[];
51
51
/*
52
52
* Symbols generated by "makerom" (ROM)
53
53
*/
54
- extern char _staticSegmentRomStart [],
55
- _staticSegmentRomEnd [];
56
54
extern char _gbromSegmentRomStart [];
57
55
58
56
/*
@@ -96,8 +94,6 @@ OSIoMesg dmaIOMessageBuf; /* * see man page to understand this */
96
94
* global variables
97
95
*/
98
96
int rdp_flag = 0 ;
99
- char * staticSegment ;
100
- char * _gEndSegments ;
101
97
102
98
103
99
@@ -193,28 +189,6 @@ static void mainproc(void *arg)
193
189
osCreateMesgQueue (& retraceMessageQ , retraceMessageBuf , 20 );
194
190
osViSetEvent (& retraceMessageQ , NULL , 1 );
195
191
196
- /*
197
- * Stick the static segment right after the code/data segment
198
- */
199
- staticSegment = _codeSegmentEnd ;
200
-
201
- osInvalDCache ((void * )staticSegment ,
202
- (u32 ) _staticSegmentRomEnd - (u32 ) _staticSegmentRomStart );
203
-
204
-
205
- dmaIOMessageBuf .hdr .pri = OS_MESG_PRI_NORMAL ;
206
- dmaIOMessageBuf .hdr .retQueue = & dmaMessageQ ;
207
- dmaIOMessageBuf .dramAddr = staticSegment ;
208
- dmaIOMessageBuf .devAddr = (u32 )_staticSegmentRomStart ;
209
- dmaIOMessageBuf .size = (u32 )_staticSegmentRomEnd - (u32 )_staticSegmentRomStart ;
210
-
211
- osEPiStartDma (handler , & dmaIOMessageBuf , OS_READ );
212
-
213
- /*
214
- * Wait for DMA to finish
215
- */
216
- (void ) osRecvMesg (& dmaMessageQ , NULL , OS_MESG_BLOCK );
217
-
218
192
219
193
#ifdef USE_DEBUGGER
220
194
OSThread * threads = & mainThread ;
@@ -225,12 +199,6 @@ static void mainproc(void *arg)
225
199
}
226
200
#endif
227
201
228
-
229
- /*
230
- * Stick the texture segment right after the static segment
231
- */
232
- _gEndSegments = staticSegment +
233
- (u32 ) _staticSegmentRomEnd - (u32 ) _staticSegmentRomStart ;
234
202
235
203
clearDebugOutput ();
236
204
0 commit comments