forked from olajep/esim-test-bins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setallregs.c
85 lines (85 loc) · 2.59 KB
/
setallregs.c
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
int main()
{
// __asm__ ("mov r10, 0");
// __asm__ ("movts config, r10");
// __asm__ ("add r10, r10, 1");
// __asm__ ("movts status, r10");
// __asm__ ("add r10, r10, 1");
// __asm__ ("movts pc, r10");
// __asm__ ("add r10, r10, 1");
__asm__ ("movts DEBUG, r10");
__asm__ ("add r10, r10, 1");
__asm__ ("movts lc, r10");
__asm__ ("add r10, r10, 1");
__asm__ ("movts ls, r10");
__asm__ ("add r10, r10, 1");
__asm__ ("movts le, r10");
__asm__ ("add r10, r10, 1");
__asm__ ("movts iret, r10");
__asm__ ("add r10, r10, 1");
__asm__ ("movts imask, r10");
__asm__ ("add r10, r10, 1");
__asm__ ("movts ilat, r10");
__asm__ ("add r10, r10, 1");
__asm__ ("movts ilatst, r10");
__asm__ ("add r10, r10, 1");
__asm__ ("movts ilatcl, r10");
__asm__ ("add r10, r10, 1");
__asm__ ("movts ipend, r10");
__asm__ ("add r10, r10, 1");
__asm__ ("movts fstatus, r10");
__asm__ ("add r10, r10, 1");
/* __asm__ ("movts debugcmd, r10"); */
__asm__ ("movts resetcore, r10");
__asm__ ("add r10, r10, 1");
__asm__ ("movts ctimer0, r10");
__asm__ ("add r10, r10, 1");
__asm__ ("movts ctimer1, r10");
__asm__ ("add r10, r10, 1");
__asm__ ("movts memstatus, r10");
__asm__ ("add r10, r10, 1");
__asm__ ("movts memprotect, r10");
__asm__ ("add r10, r10, 1");
__asm__ ("movts dma0config, r10");
__asm__ ("add r10, r10, 1");
__asm__ ("movts dma0stride, r10");
__asm__ ("add r10, r10, 1");
__asm__ ("movts dma0count, r10");
__asm__ ("add r10, r10, 1");
__asm__ ("movts dma0srcaddr, r10");
__asm__ ("add r10, r10, 1");
__asm__ ("movts dma0dstaddr, r10");
__asm__ ("add r10, r10, 1");
__asm__ ("movts dma0auto0, r10");
__asm__ ("add r10, r10, 1");
__asm__ ("movts dma0auto1, r10");
__asm__ ("add r10, r10, 1");
__asm__ ("movts dma0status, r10");
__asm__ ("add r10, r10, 1");
__asm__ ("movts dma1config, r10");
__asm__ ("add r10, r10, 1");
__asm__ ("movts dma1stride, r10");
__asm__ ("add r10, r10, 1");
__asm__ ("movts dma1count, r10");
__asm__ ("add r10, r10, 1");
__asm__ ("movts dma1srcaddr, r10");
__asm__ ("add r10, r10, 1");
__asm__ ("movts dma1dstaddr, r10");
__asm__ ("add r10, r10, 1");
__asm__ ("movts dma1auto0, r10");
__asm__ ("add r10, r10, 1");
__asm__ ("movts dma1auto1, r10");
__asm__ ("add r10, r10, 1");
__asm__ ("movts dma1status, r10");
__asm__ ("add r10, r10, 1");
__asm__ ("movts meshconfig, r10");
__asm__ ("add r10, r10, 1");
__asm__ ("movts coreid, r10");
/*
__asm__ ("movts multicast, r10");
__asm__ ("movts cmeshroute, r10");
__asm__ ("movts xmeshroute, r10");
__asm__ ("movts rmeshroute, r10");
*/
return 0;
}