Debian Codegraph @

tests/aslts/src/runtime/collections/functional/reference/TABLES

raw
1
2 Collection of the functional information about the
3 Object Reference and the call-by-reference convention.
4
5
6
7 NOTATIONS:
8
9 x - impossible to generate situation
10 c - expected is a compiler error
11 e - is not caught by compiler but causes exception
12 + - expected is a positive result
13 ? - should be more investigated
14 ... - means everywhere below too
15
16 A. ALL THE LEGAL WAYS TO GENERATE REFERENCES
17
18 (means that Debug reports the obtained object like this:
19 [ACPI Debug] Reference: 004D4068)
20 ^^^^^^^^^^
21
22
23
24
25 TABLE 1: all the legal ways to generate references to the
26 immediate images (constants)
27
28 --------------------|---------------------------|-----------|-----------|-----------|
29 Type | Examples | Index | RefOf | CondRefOf |
30 | | I IR | R | C CR |
31 --------------------|---------------------------|-----------|-----------|-----------|
32 0 Uninitialized | | x x | x | x x |
33 1 Integer | 0xabcdef | c c | c | c c |
34 2 String | "qwrtu" | + + | c | c c |
35 3 Buffer | Buffer(){7} | + + | c | c c |
36 4 Package | Package(){8} | + + | c | c c |
37 5 Field Unit | Field(..) {f000,..} | c c | c | c c |
38 | BankField(..) {bkf0..} | c c | c | c c |
39 | IndexField(..) {if00..} | c c | c | c c |
40 6 Device | Device(d000) {OL} | c c | c | c c |
41 7 Event | Event(e000) | c c | c | c c |
42 8 Method | Method(m000) {return(0)} | c c | c | c c |
43 9 Mutex | Mutex(mx00, 0) | c c | c | c c |
44 10 Operation Region | OperationRegion(r000,..) | c c | c | c c |
45 11 Power Resource | PowerResource(pwr0,..){OL}| c c | c | c c |
46 12 Processor | Processor(prc0,..){OL} | c c | c | c c |
47 13 Thermal Zone | ThermalZone(tz00){OL} | c c | c | c c |
48 14 Buffer Field | Create*Field(..,bf00) | c c | c | c c |
49 15 DDB Handle | | x x | x | x x |
50 16 Debug Object | Debug | c c | c | c c |
51 --------------------|---------------------------|-----------|-----------|-----------|
52
53 Examples of I:
54
55 Store(Index("qwrtyuiop", 5), Local0)
56 Store(Index(Buffer() {1,2,3,4,5,6,7,8}, 5), Local0)
57 Store(Index(Package() {1,2,3,4,5,6,7,8}, 5), Local0)
58
59 Examples of IR:
60
61 Store(Index("qwrtyuiop", 5, Local1), Local0)
62 Store(Index(Buffer() {1,2,3,4,5,6,7,8}, 5, Local1), Local0)
63 Store(Index(Package() {1,2,3,4,5,6,7,8}, 5, Local1), Local0)
64
65
66
67
68 TABLE 2: all the legal ways to generate references to the named objects
69
70 --------------------|---------------------------|-----------|-----------|-----------|
71 Type | Examples | Index | RefOf | CondRefOf |
72 | | I IR | R | C CR |
73 --------------------|---------------------------|-----------|-----------|-----------|
74 0 Uninitialized | | x x | x | x x |
75 1 Integer | Name(i000, 0xabcdef)) | ?2004 ? | + | + + |
76 2 String | Name(s000, "qwrtu") | + + | + | + + |
77 3 Buffer | Name(b000, Buffer(){7}) | + + | + | + + |
78 4 Package | Name(p000, Package(){8}) | + + | + | + + |
79 5 Field Unit | Field(..) {f000,..} | ?2004 ? | + | + + |
80 | BankField(..) {bkf0..} | ?2004 ? | + | + + |
81 | IndexField(..) {if00..} | ?2004 ? | + | + + |
82 6 Device | Device(d000) {OL} | c c | + | + + |
83 7 Event | Event(e000) | c c | + | + + |
84 8 Method | Method(m000) {return(0)} | ?2006 ? | + | + + |
85 9 Mutex | Mutex(mx00, 0) | c c | + | + + |
86 10 Operation Region | OperationRegion(r000,..) | c c | + | + + |
87 11 Power Resource | PowerResource(pwr0,..){OL}| c c | + | + + |
88 12 Processor | Processor(prc0,..){OL} | c c | + | + + |
89 13 Thermal Zone | ThermalZone(tz00){OL} | c c | + | + + |
90 14 Buffer Field | Create*Field(..,bf00) | ?2004 ? | + | + + |
91 15 DDB Handle | | x x | x | x x |
92 16 Debug Object | | x x | x | x x |
93 --------------------|---------------------------|-----------|-----------|-----------|
94
95 Examples of I:
96
97 Store(Index(s000, 0), Local0)
98 Store(Index(b000, 0), Local0)
99 Store(Index(p000, 0), Local0)
100
101 Examples of IR:
102
103 Store(Index(s000, 0, Local1), Local0)
104 Store(Index(b000, 0, Local1), Local0)
105 Store(Index(p000, 0, Local1), Local0)
106
107 Examples of R:
108
109 Store(RefOf(i000), Local0)
110 Store(RefOf(s000), Local0)
111 Store(RefOf(b000), Local0)
112 Store(RefOf(p000), Local0)
113 Store(RefOf(f000), Local0)
114 Store(RefOf(bkf0), Local0)
115 Store(RefOf(if00), Local0)
116 Store(RefOf(d000), Local0)
117 Store(RefOf(e000), Local0)
118 Store(RefOf(m000), Local0)
119 Store(RefOf(mx00), Local0)
120 Store(RefOf(r000), Local0)
121 Store(RefOf(pwr0), Local0)
122 Store(RefOf(prc0), Local0)
123 Store(RefOf(tz00), Local0)
124 Store(RefOf(bf00), Local0)
125
126 Examples of C:
127
128 Store(CondRefOf(i000), Local0)
129 Store(CondRefOf(s000), Local0)
130 Store(CondRefOf(b000), Local0)
131 Store(CondRefOf(p000), Local0)
132 Store(CondRefOf(f000), Local0)
133 Store(CondRefOf(bkf0), Local0)
134 Store(CondRefOf(if00), Local0)
135 Store(CondRefOf(d000), Local0)
136 Store(CondRefOf(e000), Local0)
137 Store(CondRefOf(m000), Local0)
138 Store(CondRefOf(mx00), Local0)
139 Store(CondRefOf(r000), Local0)
140 Store(CondRefOf(pwr0), Local0)
141 Store(CondRefOf(prc0), Local0)
142 Store(CondRefOf(tz00), Local0)
143 Store(CondRefOf(bf00), Local0)
144
145 Examples of CR:
146
147 Store(CondRefOf(i000, Local1), Local0)
148 Store(CondRefOf(s000, Local1), Local0)
149 Store(CondRefOf(b000, Local1), Local0)
150 Store(CondRefOf(p000, Local1), Local0)
151 Store(CondRefOf(f000, Local1), Local0)
152 Store(CondRefOf(bkf0, Local1), Local0)
153 Store(CondRefOf(if00, Local1), Local0)
154 Store(CondRefOf(d000, Local1), Local0)
155 Store(CondRefOf(e000, Local1), Local0)
156 Store(CondRefOf(m000, Local1), Local0)
157 Store(CondRefOf(mx00, Local1), Local0)
158 Store(CondRefOf(r000, Local1), Local0)
159 Store(CondRefOf(pwr0, Local1), Local0)
160 Store(CondRefOf(prc0, Local1), Local0)
161 Store(CondRefOf(tz00, Local1), Local0)
162 Store(CondRefOf(bf00, Local1), Local0)
163
164
165
166
167 TABLE 3: all the legal ways to generate references to the
168 immediate images (constants) being elements of Package
169
170 --------------------|----------------------------|-----------|-----------|-----------|
171 Type | Examples | Index | RefOf | CondRefOf |
172 | | I IR | R | C CR |
173 --------------------|----------------------------|-----------|-----------|-----------|
174 0 Uninitialized | Package(1){} | + + | x | x x |
175 1 Integer | Package(){0xabcdef} | + + | ... | ... ...|
176 2 String | Package(){"qwrtu"} | + + | | |
177 3 Buffer | Package(){Buffer(){7}} | + + | | |
178 4 Package | Package(){Package(){8}} | + + | | |
179 5 Field Unit | Package(){Field(f000)} | x x | | |
180 | Package(){BankField(bkf0)} | ... ...| | |
181 | Package(){IndexField(if00)}| | | |
182 6 Device | Package(){Device(d000)} | | | |
183 7 Event | Package(){Event(e000)} | | | |
184 8 Method | Package(){Method(m000)} | | | |
185 9 Mutex | Package(){Mutex(mx00)} | | | |
186 10 Operation Region | Package(){OperRegion(r000)}| | | |
187 11 Power Resource | Package(){PwResource(pwr0)}| | | |
188 12 Processor | Package(){Processor(prc0)} | | | |
189 13 Thermal Zone | Package(){ThermZone(tz00)} | | | |
190 14 Buffer Field | Package(){Cr*Field(bf00)} | | | |
191 15 DDB Handle | | | | |
192 16 Debug Object | Package(){Debug} | | | |
193 --------------------|----------------------------|-----------|-----------|-----------|
194
195 Examples of I:
196
197 Store(Index(Package(1){}, 0), Local0)
198 Store(Index(Package(){0xabcdef}, 0), Local0)
199 Store(Index(Package(){"qwrtyuiop"}, 0), Local0)
200 Store(Index(Package(){Buffer() {1,2,3,4,5,6,7,8,9}}, 0), Local0)
201 Store(Index(Package(){Package(){0xabcdef}}, 0), Local0)
202 Store(Index(Package(){Package(){"qwrtyuiop"}}, 0), Local0)
203 Store(Index(Package(){Package(){Buffer() {1,2,3,4,5,6,7,8,9}}}, 0), Local0)
204 Store(Index(Package(){Package(){Package(){0xabcdef}}}, 0), Local0)
205
206 Examples of IR:
207
208 Store(Index(Package(1){}, 0, Local1), Local0)
209 Store(Index(Package(){0xabcdef}, 0, Local1), Local0)
210 Store(Index(Package(){"qwrtyuiop"}, 0, Local1), Local0)
211 Store(Index(Package(){Buffer() {1,2,3,4,5,6,7,8,9}}, 0, Local1), Local0)
212 Store(Index(Package(){Package(){0xabcdef}}, 0, Local1), Local0)
213 Store(Index(Package(){Package(){"qwrtyuiop"}}, 0, Local1), Local0)
214 Store(Index(Package(){Package(){Buffer() {1,2,3,4,5,6,7,8,9}}}, 0, Local1), Local0)
215 Store(Index(Package(){Package(){Package(){0xabcdef}}}, 0, Local1), Local0)
216
217
218
219
220 TABLE 4: all the legal ways to generate references to the
221 named objects being elements of Package
222
223 --------------------|---------------------------|-----------|-----------|-----------|
224 Type | Examples | Index | RefOf | CondRefOf |
225 | | I IR | R | C CR |
226 --------------------|---------------------------|-----------|-----------|-----------|
227 0 Uninitialized | | x x | x | x x |
228 1 Integer | Package(){i000} | + + | ... | ... ...|
229 2 String | Package(){s000} | + + | | |
230 3 Buffer | Package(){b000} | ... ...| | |
231 4 Package | Package(){p000} | | | |
232 5 Field Unit | Package(){f000} | | | |
233 | Package(){bkf0} | | | |
234 | Package(){if00} | | | |
235 6 Device | Package(){d000} | | | |
236 7 Event | Package(){e000} | | | |
237 8 Method | Package(){m000} | | | |
238 9 Mutex | Package(){mx00} | | | |
239 10 Operation Region | Package(){r000} | | | |
240 11 Power Resource | Package(){pwr0} | | | |
241 12 Processor | Package(){prc0} | | | |
242 13 Thermal Zone | Package(){tz00} | | | |
243 14 Buffer Field | Package(){bf00} | | | |
244 15 DDB Handle | | x x | | |
245 16 Debug Object | | x x | | |
246 --------------------|---------------------------|-----------|-----------|-----------|
247
248
249 Examples of I:
250
251 Store(Index(Package(){i000}, 0), Local0)
252 Store(Index(Package(){s000}, 0), Local0)
253 Store(Index(Package(){b000}, 0), Local0)
254 Store(Index(Package(){p000}, 0), Local0)
255 Store(Index(Package(){f000}, 0), Local0)
256 Store(Index(Package(){bkf0}, 0), Local0)
257 Store(Index(Package(){if00}, 0), Local0)
258 Store(Index(Package(){d000}, 0), Local0)
259 Store(Index(Package(){e000}, 0), Local0)
260 Store(Index(Package(){m000}, 0), Local0)
261 Store(Index(Package(){mx00}, 0), Local0)
262 Store(Index(Package(){r000}, 0), Local0)
263 Store(Index(Package(){pwr0}, 0), Local0)
264 Store(Index(Package(){prc0}, 0), Local0)
265 Store(Index(Package(){tz00}, 0), Local0)
266 Store(Index(Package(){bf00}, 0), Local0)
267
268 Examples of IR:
269
270 Store(Index(Package(){i000}, 0, Local1), Local0)
271 Store(Index(Package(){s000}, 0, Local1), Local0)
272 Store(Index(Package(){b000}, 0, Local1), Local0)
273 Store(Index(Package(){p000}, 0, Local1), Local0)
274 Store(Index(Package(){f000}, 0, Local1), Local0)
275 Store(Index(Package(){bkf0}, 0, Local1), Local0)
276 Store(Index(Package(){if00}, 0, Local1), Local0)
277 Store(Index(Package(){d000}, 0, Local1), Local0)
278 Store(Index(Package(){e000}, 0, Local1), Local0)
279 Store(Index(Package(){m000}, 0, Local1), Local0)
280 Store(Index(Package(){mx00}, 0, Local1), Local0)
281 Store(Index(Package(){r000}, 0, Local1), Local0)
282 Store(Index(Package(){pwr0}, 0, Local1), Local0)
283 Store(Index(Package(){prc0}, 0, Local1), Local0)
284 Store(Index(Package(){tz00}, 0, Local1), Local0)
285 Store(Index(Package(){bf00}, 0, Local1), Local0)
286
287
288
289
290 TABLE 5: all the legal ways to generate references to LocalX
291
292 --------------------|---------------------------|-----------|-----------|-----------|
293 Type | Examples | Index | RefOf | CondRefOf |
294 | | I IR | R | C CR |
295 --------------------|---------------------------|-----------|-----------|-----------|
296 0 Uninitialized | Store(UNIN, Local0); RF(L)| e e | + | + + |
297 1 Integer | Store(i000, Local0); RF(L)| e e | + | + + |
298 2 String | Store(s000, Local0); RF(L)| + + | + | + + |
299 3 Buffer | Store(b000, Local0); RF(L)| + + | + | + + |
300 4 Package | Store(p000, Local0); RF(L)| + + | + | + + |
301 5 Field Unit | Store(f000, Local0); RF(L)| e e | + | + + |
302 | Store(bkf0, Local0); RF(L)| e e | + | + + |
303 | Store(if00, Local0); RF(L)| e e | + | + + |
304 6 Device | Store(d000, Local0); RF(L)| x x | x | x x |
305 7 Event | Store(e000, Local0); RF(L)| ... ...| ... | ... ...|
306 8 Method | Store(m000, Local0); RF(L)| | | |
307 9 Mutex | Store(mx00, Local0); RF(L)| | | |
308 10 Operation Region | Store(r000, Local0); RF(L)| | | |
309 11 Power Resource | Store(pwr0, Local0); RF(L)| | | |
310 12 Processor | Store(prc0, Local0); RF(L)| | | |
311 13 Thermal Zone | Store(tz00, Local0); RF(L)| | | |
312 14 Buffer Field | Store(bf00, Local0); RF(L)| e e | + | + + |
313 15 DDB Handle | Store(HDL, Local0); RF(L)| | | |
314 16 Debug Object | Store(Debug,Local0); RF(L)| | | |
315 --------------------|---------------------------|-----------|-----------|-----------|
316
317
318 Examples of I:
319
320 Store(s000, Local7)
321 Store(Index(Local7, 0), Local0)
322 Store(b000, Local7)
323 Store(Index(Local7, 0), Local0)
324 Store(p000, Local7)
325 Store(Index(Local7, 0), Local0)
326
327 Examples of IR:
328
329 Store(s000, Local7)
330 Store(Index(Local7, 0, Local1), Local0)
331 Store(b000, Local7)
332 Store(Index(Local7, 0, Local1), Local0)
333 Store(p000, Local7)
334 Store(Index(Local7, 0, Local1), Local0)
335
336 Examples of R:
337
338 Store(i000, Local7)
339 Store(RefOf(Local7), Local0)
340 Store(s000, Local7)
341 Store(RefOf(Local7), Local0)
342 Store(b000, Local7)
343 Store(RefOf(Local7), Local0)
344 Store(p000, Local7)
345 Store(RefOf(Local7), Local0)
346 Store(f000, Local7)
347 Store(RefOf(Local7), Local0)
348 Store(bkf0, Local7)
349 Store(RefOf(Local7), Local0)
350 Store(if00, Local7)
351 Store(RefOf(Local7), Local0)
352
353 Examples of C:
354
355 Store(i000, Local7)
356 Store(CondRefOf(Local7), Local0)
357 Store(s000, Local7)
358 Store(CondRefOf(Local7), Local0)
359 Store(b000, Local7)
360 Store(CondRefOf(Local7), Local0)
361 Store(p000, Local7)
362 Store(CondRefOf(Local7), Local0)
363 Store(f000, Local7)
364 Store(CondRefOf(Local7), Local0)
365 Store(bkf0, Local7)
366 Store(CondRefOf(Local7), Local0)
367 Store(if00, Local7)
368 Store(CondRefOf(Local7), Local0)
369
370 Examples of CR:
371
372 Store(i000, Local7)
373 Store(CondRefOf(Local7, Local1), Local0)
374 Store(s000, Local7)
375 Store(CondRefOf(Local7, Local1), Local0)
376 Store(b000, Local7)
377 Store(CondRefOf(Local7, Local1), Local0)
378 Store(p000, Local7)
379 Store(CondRefOf(Local7, Local1), Local0)
380 Store(f000, Local7)
381 Store(CondRefOf(Local7, Local1), Local0)
382 Store(bkf0, Local7)
383 Store(CondRefOf(Local7, Local1), Local0)
384 Store(if00, Local7)
385 Store(CondRefOf(Local7, Local1), Local0)
386
387
388
389
390 TABLE 6: all the legal ways to generate references to ArgX
391
392 --------------------|---------------------------|-----------|-----------|-----------|
393 Type | Examples | Index | RefOf | CondRefOf |
394 | | I IR | R | C CR |
395 --------------------|---------------------------|-----------|-----------|-----------|
396 0 Uninitialized | Store(UNIN, Arg0); RF(L) | e e | + | + + |
397 1 Integer | Store(i000, Arg0); RF(L) | e e | + | + + |
398 2 String | Store(s000, Arg0); RF(L) | + + | + | + + |
399 3 Buffer | Store(b000, Arg0); RF(L) | + + | + | + + |
400 4 Package | Store(p000, Arg0); RF(L) | + + | + | + + |
401 5 Field Unit | Store(f000, Arg0); RF(L) | e e | + | + + |
402 | Store(bkf0, Arg0); RF(L) | e e | + | + + |
403 | Store(if00, Arg0); RF(L) | e e | + | + + |
404 6 Device | Store(d000, Arg0); RF(L) | x x | x | x x |
405 7 Event | Store(e000, Arg0); RF(L) | ... ...| ... | ... ...|
406 8 Method | Store(m000, Arg0); RF(L) | | | |
407 9 Mutex | Store(mx00, Arg0); RF(L) | | | |
408 10 Operation Region | Store(r000, Arg0); RF(L) | | | |
409 11 Power Resource | Store(pwr0, Arg0); RF(L) | | | |
410 12 Processor | Store(prc0, Arg0); RF(L) | | | |
411 13 Thermal Zone | Store(tz00, Arg0); RF(L) | | | |
412 14 Buffer Field | Store(bf00, Arg0); RF(L) | e e | + | + + |
413 15 DDB Handle | Store(HDL, Arg0); RF(L) | | | |
414 16 Debug Object | Store(Debug,Arg0); RF(L) | | | |
415 --------------------|---------------------------|-----------|-----------|-----------|
416
417
418 Examples of I:
419
420 Store(s000, Arg6)
421 Store(Index(Arg6, 0), Local0)
422 Store(b000, Arg6)
423 Store(Index(Arg6, 0), Local0)
424 Store(p000, Arg6)
425 Store(Index(Arg6, 0), Local0)
426
427 Examples of IR:
428
429 Store(s000, Arg6)
430 Store(Index(Arg6, 0, Local1), Local0)
431 Store(b000, Arg6)
432 Store(Index(Arg6, 0, Local1), Local0)
433 Store(p000, Arg6)
434 Store(Index(Arg6, 0, Local1), Local0)
435
436 Examples of R:
437
438 Store(i000, Arg6)
439 Store(RefOf(Arg6), Local0)
440 Store(s000, Arg6)
441 Store(RefOf(Arg6), Local0)
442 Store(b000, Arg6)
443 Store(RefOf(Arg6), Local0)
444 Store(p000, Arg6)
445 Store(RefOf(Arg6), Local0)
446 Store(f000, Arg6)
447 Store(RefOf(Arg6), Local0)
448 Store(bkf0, Arg6)
449 Store(RefOf(Arg6), Local0)
450 Store(if00, Arg6)
451 Store(RefOf(Arg6), Local0)
452
453 Examples of C:
454
455 Store(i000, Arg6)
456 Store(CondRefOf(Arg6), Local0)
457 Store(s000, Arg6)
458 Store(CondRefOf(Arg6), Local0)
459 Store(b000, Arg6)
460 Store(CondRefOf(Arg6), Local0)
461 Store(p000, Arg6)
462 Store(CondRefOf(Arg6), Local0)
463 Store(f000, Arg6)
464 Store(CondRefOf(Arg6), Local0)
465 Store(bkf0, Arg6)
466 Store(CondRefOf(Arg6), Local0)
467 Store(if00, Arg6)
468 Store(CondRefOf(Arg6), Local0)
469
470 Examples of CR:
471
472 Store(i000, Arg6)
473 Store(CondRefOf(Arg6, Local1), Local0)
474 Store(s000, Arg6)
475 Store(CondRefOf(Arg6, Local1), Local0)
476 Store(b000, Arg6)
477 Store(CondRefOf(Arg6, Local1), Local0)
478 Store(p000, Arg6)
479 Store(CondRefOf(Arg6, Local1), Local0)
480 Store(f000, Arg6)
481 Store(CondRefOf(Arg6, Local1), Local0)
482 Store(bkf0, Arg6)
483 Store(CondRefOf(Arg6, Local1), Local0)
484 Store(if00, Arg6)
485 Store(CondRefOf(Arg6, Local1), Local0)
486
487
488 B. ALL THE LEGAL WAYS TO USE REFERENCES
489
490 The ways of using the RefOf and Index References are comprehensively
491 specified and commented in the test specification (see file SPEC2).
492
493