testapp.c
876 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#include <PR/bcp.h>
#include <PR/bbsim.h>
#include <PR/bbskapi.h>
#include "../message.h"
boot()
{
u32 val;
char outstr[32];
#if 0
/* reset IDE */
val = IO_READ(PI_IDE_CONFIG_REG);
val &= ~PI_IDE_CONFIG_RESET;
IO_WRITE(PI_IDE_CONFIG_REG,val);
#endif
#if 0
message("sk_entry1,1\n");
val = skTest1(14,4);
message(" return value = ");
output_int32_hex((u32)val);
message("\n");
#endif
#if 0
message("calling sk_entry2\n");
val = skTest2(3,3);
message(" return value = ");
output_int32_hex((u32)val);
message("\n");
#endif
#if 0
message("sk_entry1,2\n");
val = skTest1(20,4);
message(" return value = ");
output_int32_hex((u32)val);
message("\n");
asm("j __timer_test");
#endif
#ifdef BIG_APP
asm(".set noreorder; .rept (1024*1024*4)/4; nop; .endr; .set reorder");
#endif
}