1
2 #include <linux/config.h>
3 #include <linux/signal.h>
4 #include <linux/sched.h>
5 #include <linux/head.h>
6 #include <linux/kernel.h>
7 #include <linux/errno.h>
8 #include <linux/string.h>
9 #include <linux/types.h>
10 #include <linux/ptrace.h>
11 #include <linux/mman.h>
12 #include <linux/mm.h>
13
14 #include <asm/pgtable.h>
15
16
17
18
19
20 BAT BAT0 =
21 {
22 {
23 0x80000000>>17,
24 BL_256M,
25 1,
26 1,
27 },
28 {
29 0x80000000>>17,
30 1,
31 1,
32 0,
33 0,
34 BPP_RW
35 }
36 };
37 BAT BAT1 =
38 {
39 {
40 0xC0000000>>17,
41 BL_256M,
42 1,
43 1,
44 },
45 {
46 0xC0000000>>17,
47 1,
48 1,
49 0,
50 0,
51 BPP_RW
52 }
53 };
54 BAT BAT2 =
55 {
56 {
57 0x00000000>>17,
58 BL_256M,
59 0,
60 0,
61 },
62 {
63 0x00000000>>17,
64 1,
65 1,
66 0,
67 0,
68 BPP_RW
69 }
70 };
71 BAT BAT3 =
72 {
73 {
74 0x00000000>>17,
75 BL_256M,
76 0,
77 0,
78 },
79 {
80 0x00000000>>17,
81 1,
82 1,
83 0,
84 0,
85 BPP_RW
86 }
87 };
88
89
90 BAT TMP_BAT2 =
91 {
92 {
93 0x90000000>>17,
94 BL_256M,
95 1,
96 1,
97 },
98 {
99 0x00000000>>17,
100 1,
101 0,
102 0,
103 0,
104 BPP_RW
105 }
106 };
107
108
109
110 BAT ZERO_BAT =
111 {
112 {
113 0x00000000>>17,
114 BL_256M,
115 1,
116 1,
117 },
118 {
119 0x00000000>>17,
120 1,
121 0,
122 0,
123 0,
124 BPP_RW
125 }
126 };
127
128
129 BAT OFF_BAT =
130 {
131 {
132 0x00000000>>17,
133 BL_256M,
134 0,
135 0,
136 },
137 {
138 0x00000000>>17,
139 1,
140 0,
141 0,
142 0,
143 BPP_RW
144 }
145 };