File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -305,6 +305,7 @@ static char *get_token(char **str)
305
305
return d ;
306
306
}
307
307
308
+ #ifdef CSR_KERNEL_CPU_BASE
308
309
static const unsigned int test_program [] = {
309
310
0x1860dead , // l.movhi r3,0xdead
310
311
0x1880d000 , // l.movhi r4,0xd000
@@ -326,6 +327,7 @@ static void cputest(void)
326
327
for (i = 0 ;i < 10 ;i ++ )
327
328
printf ("%08x\n" , MMPTR (0xd0000000 ));
328
329
}
330
+ #endif
329
331
330
332
static void do_command (char * c )
331
333
{
@@ -349,7 +351,9 @@ static void do_command(char *c)
349
351
else if (strcmp (token , "ddsftw" ) == 0 ) ddsftw (get_token (& c ), get_token (& c ));
350
352
else if (strcmp (token , "ddstest" ) == 0 ) ddstest (get_token (& c ));
351
353
354
+ #ifdef CSR_KERNEL_CPU_BASE
352
355
else if (strcmp (token , "cputest ") == 0 ) cputest ();
356
+ #endif
353
357
354
358
else if (strcmp (token , "") != 0 )
355
359
printf ("Command not found \n ");
You can’t perform that action at this time.
0 commit comments