Debian Codegraph @

tests/aslts/src/runtime/collections/Identity2MS/abbu/initial/ns_in30.asl

raw
1 /*
2 * Some or all of this work - Copyright (c) 2006 - 2021, Intel Corp.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without modification,
6 * are permitted provided that the following conditions are met:
7 *
8 * Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer.
10 * Redistributions in binary form must reproduce the above copyright notice,
11 * this list of conditions and the following disclaimer in the documentation
12 * and/or other materials provided with the distribution.
13 * Neither the name of Intel Corporation nor the names of its contributors
14 * may be used to endorse or promote products derived from this software
15 * without specific prior written permission.
16 *
17 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
18 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
21 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
25 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
26 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29 /*
30 * Source file ns_0010.asl
31 *
32 * The tests differ those from ns_0010.asl by that the objects are
33 * passed to methods as argument (Arg) but not directly by name.
34 */
35
36 Name(z166, 166)
37
38 /*
39 *
40 * Read/write access to elements of Package passed to method.
41 *
42 */
43
44 /*
45 *
46 * Elements of Package are constant Integer (0xabcd0000)
47 *
48 */
49
50 /*
51 * Package is passed by ArgX to method:
52 * - directly
53 */
54 Method(in30,, Serialized)
55 {
56 Name(ts, "in30")
57 Name(p000, Package() {0xabcd0000, 0xabcd0001, 0xabcd0002})
58
59 Method(m000, 2)
60 {
61 Method(m001, 2)
62 {
63 Store(DerefOf(Index(arg0, 0)), Local0)
64 if (LNotEqual(Local0, 0xabcd0000)) {
65 err(ts, z166, __LINE__, 0, 0, Local0, 0xabcd0000)
66 }
67
68 Store(0x11112222, Index(arg0, 0))
69
70 Store(DerefOf(Index(arg0, 0)), Local0)
71 if (LNotEqual(Local0, 0x11112222)) {
72 err(ts, z166, __LINE__, 0, 0, Local0, 0x11112222)
73 }
74 }
75 m001(arg0, arg1)
76 }
77
78 m000(p000, RefOf(p000))
79
80 Store(DerefOf(Index(p000, 0)), Local0)
81 if (LNotEqual(Local0, 0x11112222)) {
82 err(ts, z166, __LINE__, 0, 0, Local0, 0x11112222)
83 }
84
85 Store(DerefOf(Index(p000, 1)), Local0)
86 if (LNotEqual(Local0, 0xabcd0001)) {
87 err(ts, z166, __LINE__, 0, 0, Local0, 0xabcd0001)
88 }
89 }
90
91 /*
92 * Package is passed by ArgX to method:
93 * - by ORef
94 */
95 Method(in31,, Serialized)
96 {
97 Name(ts, "in31")
98 Name(p000, Package() {0xabcd0000, 0xabcd0001, 0xabcd0002})
99
100 Method(m000, 2)
101 {
102 Method(m001, 2)
103 {
104 Store(DerefOf(arg1), Local7)
105
106 Store(DerefOf(Index(Local7, 1)), Local0)
107 if (LNotEqual(Local0, 0xabcd0001)) {
108 err(ts, z166, __LINE__, 0, 0, Local0, 0xabcd0001)
109 }
110
111 Store(0x33334444, Index(Local7, 1))
112
113 Store(DerefOf(Index(Local7, 1)), Local0)
114 if (LNotEqual(Local0, 0x33334444)) {
115 err(ts, z166, __LINE__, 0, 0, Local0, 0x33334444)
116 }
117 }
118 m001(arg0, arg1)
119 }
120
121 m000(p000, RefOf(p000))
122
123 Store(DerefOf(Index(p000, 0)), Local0)
124 if (LNotEqual(Local0, 0xabcd0000)) {
125 err(ts, z166, __LINE__, 0, 0, Local0, 0xabcd0000)
126 }
127
128 Store(DerefOf(Index(p000, 1)), Local0)
129 if (LNotEqual(Local0, 0xabcd0001)) {
130 err(ts, z166, __LINE__, 0, 0, Local0, 0xabcd0001)
131 }
132 }
133
134 /*
135 * Package is passed by ArgX to method:
136 * - directly
137 * - by ORef
138 */
139 Method(in32,, Serialized)
140 {
141 Name(ts, "in32")
142 Name(p000, Package() {0xabcd0000, 0xabcd0001, 0xabcd0002})
143
144 Method(m000, 2)
145 {
146 Method(m001, 2)
147 {
148 Store(0x11112222, Index(arg0, 0))
149
150 Store(DerefOf(Index(arg0, 0)), Local0)
151 if (LNotEqual(Local0, 0x11112222)) {
152 err(ts, z166, __LINE__, 0, 0, Local0, 0x11112222)
153 }
154
155 Store(DerefOf(arg1), Local7)
156 Store(0x33334444, Index(Local7, 1))
157
158 Store(DerefOf(Index(Local7, 1)), Local0)
159 if (LNotEqual(Local0, 0x33334444)) {
160 err(ts, z166, __LINE__, 0, 0, Local0, 0x33334444)
161 }
162 }
163 m001(arg0, arg1)
164 }
165
166 m000(p000, RefOf(p000))
167
168 Store(DerefOf(Index(p000, 0)), Local0)
169 if (LNotEqual(Local0, 0x11112222)) {
170 err(ts, z166, __LINE__, 0, 0, Local0, 0x11112222)
171 }
172
173 Store(DerefOf(Index(p000, 1)), Local0)
174 if (LNotEqual(Local0, 0xabcd0001)) {
175 err(ts, z166, __LINE__, 0, 0, Local0, 0xabcd0001)
176 }
177 }
178
179 /*
180 * Package is given directly by name:
181 * - do ORef and pass to LocalX
182 * - do DerefOf and pass to LocalX
183 */
184 Method(in33,, Serialized)
185 {
186 Name(ts, "in33")
187 Name(p000, Package() {0xabcd0000, 0xabcd0001, 0xabcd0002})
188
189 Method(m000, 2)
190 {
191 Method(m001, 2)
192 {
193 Store(RefOf(arg0), Local6)
194 Store(DerefOf(Local6), Local7)
195
196 Store(DerefOf(Index(Local7, 1)), Local0)
197 if (LNotEqual(Local0, 0xabcd0001)) {
198 err(ts, z166, __LINE__, 0, 0, Local0, 0xabcd0001)
199 }
200
201 Store(0x33334444, Index(Local7, 1))
202
203 Store(DerefOf(Index(Local7, 1)), Local0)
204 if (LNotEqual(Local0, 0x33334444)) {
205 err(ts, z166, __LINE__, 0, 0, Local0, 0x33334444)
206 }
207 }
208 m001(arg0, arg1)
209 }
210
211 m000(p000, RefOf(p000))
212
213 Store(DerefOf(Index(p000, 0)), Local0)
214 if (LNotEqual(Local0, 0xabcd0000)) {
215 err(ts, z166, __LINE__, 0, 0, Local0, 0xabcd0000)
216 }
217 Store(DerefOf(Index(p000, 1)), Local0)
218 if (LNotEqual(Local0, 0xabcd0001)) {
219 err(ts, z166, __LINE__, 0, 0, Local0, 0xabcd0001)
220 }
221 Store(DerefOf(Index(p000, 2)), Local0)
222 if (LNotEqual(Local0, 0xabcd0002)) {
223 err(ts, z166, __LINE__, 0, 0, Local0, 0xabcd0002)
224 }
225 }
226
227 /*
228 *
229 * Elements of Package are Named Integer (i000)
230 *
231 */
232
233 /*
234 * Package is passed by ArgX to method
235 *
236 * fail
237 *
238 * Note:
239 * Named element of Package is simply not implemented by MS,
240 * i000 in Package(){i000} is, on MS, the same as Package(){"i000"}.
241 */
242 Method(in34,, Serialized)
243 {
244 Name(ts, "in34")
245 Name(i000, 0xabcd0000)
246 Name(i001, 0xabcd0001)
247 Name(i002, 0xabcd0002)
248 Name(ii00, 0x11112222)
249 Name(p000, Package() {i000, i001, i002, "i000"})
250
251 Method(m000, 2)
252 {
253 Method(m001, 2)
254 {
255 Store(DerefOf(Index(arg0, 0)), Local0)
256 if (LNotEqual(Local0, 0xabcd0000)) {
257 err(ts, z166, __LINE__, 0, 0, Local0, 0xabcd0000)
258 }
259 Store(DerefOf(Index(arg0, 1)), Local0)
260 if (LNotEqual(Local0, 0xabcd0001)) {
261 err(ts, z166, __LINE__, 0, 0, Local0, 0xabcd0001)
262 }
263 Store(DerefOf(Index(arg0, 2)), Local0)
264 if (LNotEqual(Local0, 0xabcd0002)) {
265 err(ts, z166, __LINE__, 0, 0, Local0, 0xabcd0002)
266 }
267 Store(DerefOf(Index(arg0, 3)), Local0)
268 if (LNotEqual(Local0, "i000")) {
269 err(ts, z166, __LINE__, 0, 0, Local0, "i000")
270 }
271
272 Store(ii00, Index(arg0, 0))
273
274 Store(DerefOf(Index(arg0, 0)), Local0)
275 if (LNotEqual(Local0, 0x11112222)) {
276 err(ts, z166, __LINE__, 0, 0, Local0, 0x11112222)
277 }
278 }
279 m001(arg0, arg1)
280 }
281
282 m000(p000, RefOf(p000))
283
284 Store(DerefOf(Index(p000, 0)), Local0)
285 if (LNotEqual(Local0, 0x11112222)) {
286 err(ts, z166, __LINE__, 0, 0, Local0, 0x11112222)
287 }
288
289 Store(DerefOf(Index(p000, 1)), Local0)
290 if (LNotEqual(Local0, 0xabcd0001)) {
291 err(ts, z166, __LINE__, 0, 0, Local0, 0xabcd0001)
292 }
293
294 Store(DerefOf(Index(p000, 2)), Local0)
295 if (LNotEqual(Local0, 0xabcd0002)) {
296 err(ts, z166, __LINE__, 0, 0, Local0, 0xabcd0002)
297 }
298
299 Store(DerefOf(Index(p000, 3)), Local0)
300 if (LNotEqual(Local0, "i000")) {
301 err(ts, z166, __LINE__, 0, 0, Local0, "i000")
302 }
303 }
304
305 /*
306 * Buffer
307 */
308
309 Method(in36,, Serialized)
310 {
311 Name(ts, "in36")
312 Name(b000, Buffer() {0x10, 0x11, 0x12})
313
314 Method(m000, 2)
315 {
316 Method(m001, 2)
317 {
318 // arg0 - b000
319 Store(DerefOf(Index(arg0, 0)), Local0)
320 if (LNotEqual(Local0, 0x10)) {
321 err(ts, z166, __LINE__, 0, 0, Local0, 0x10)
322 }
323
324 Store(0x67, Index(arg0, 0))
325
326 Store(DerefOf(Index(arg0, 0)), Local0)
327 if (LNotEqual(Local0, 0x67)) {
328 err(ts, z166, __LINE__, 0, 0, Local0, 0x67)
329 }
330
331 // arg1 - RefOf(b000)
332
333 Store(DerefOf(arg1), Local7)
334 Store(0x55, Index(Local7, 1))
335
336 Store(DerefOf(Index(Local7, 1)), Local0)
337 if (LNotEqual(Local0, 0x55)) {
338 err(ts, z166, __LINE__, 0, 0, Local0, 0x55)
339 }
340 }
341 m001(arg0, arg1)
342 }
343
344 m000(b000, RefOf(b000))
345
346 Store(DerefOf(Index(b000, 0)), Local0)
347 if (LNotEqual(Local0, 0x67)) {
348 err(ts, z166, __LINE__, 0, 0, Local0, 0x67)
349 }
350
351 Store(DerefOf(Index(b000, 1)), Local0)
352 if (LNotEqual(Local0, 0x11)) {
353 err(ts, z166, __LINE__, 0, 0, Local0, 0x11)
354 }
355
356 Store(DerefOf(Index(b000, 2)), Local0)
357 if (LNotEqual(Local0, 0x12)) {
358 err(ts, z166, __LINE__, 0, 0, Local0, 0x12)
359 }
360 }
361
362 /*
363 * Element of Package instead of i000 (in in02)
364 *
365 * Recursive call to m001
366 */
367 Method(in37,, Serialized)
368 {
369 Name(ts, "in37")
370 Name(i001, 0)
371 Name(pp00, Package() {0x11111111, 0x00100000, 0x22223333})
372
373 Method(m000, 1)
374 {
375 Method(m001, 1)
376 {
377 /*
378 * Because of the stack overflow issues on MS the number
379 * of repetitions was changed from 100 to 9 here.
380 */
381 if (LLess(i001, 9)) {
382
383 Store(DerefOf(Index(arg0, 1)), Local0)
384 Increment(Local0)
385 Store(Local0, Index(arg0, 1))
386 Increment(i001)
387 Add(DerefOf(Index(arg0, 1)), m001(arg0), Local0)
388 Return (Local0)
389 }
390 Return (0)
391 }
392 Store(Add(DerefOf(Index(arg0, 1)), m001(arg0)), Local0)
393 Return (Local0)
394 }
395
396 Store(m000(pp00), Local0)
397
398 if (LNotEqual(Local0, 0x00a0002d)) {
399 err(ts, z166, __LINE__, 0, 0, Local0, 0x00a0002d)
400 }
401
402 Store(DerefOf(Index(pp00, 1)), Local0)
403
404 if (LNotEqual(Local0, 0x00100009)) {
405 err(ts, z166, __LINE__, 0, 0, Local0, 0x00100009)
406 }
407
408 CH03(ts, z166, 0x00c, __LINE__, 0)
409 }
410
411 /*
412 * Buffer Field instead of i000 (in in01)
413 *
414 * fail
415 *
416 * Note: Buffer Field in expressions is not supported by MS,
417 * see msfail.asl
418 */
419
420 /*
421 * Field instead of i000 (in in01)
422 */
423 Method(in38, 1, Serialized)
424 {
425 Name(ts, "in38")
426 Name(i001, 0)
427 OperationRegion(r000, SystemMemory, 0x100, 0x100)
428 Field(r000, ByteAcc, NoLock, Preserve) { f000,32, f001,32 }
429
430 CH03(ts, z166, 0x011, __LINE__, 0)
431
432 Store(arg0, i001)
433
434 Method(m000, 1)
435 {
436
437 Method(m001, 1)
438 {
439 Method(m002, 1)
440 {
441 Method(m003, 1)
442 {
443 Method(m004, 1)
444 {
445 Method(m005, 1)
446 {
447 Method(m006, 1)
448 {
449 Method(m007, 1)
450 {
451 /*
452 * To exclude stack overflow
453 * >>>>>>>>>>>>>>>>
454 Method(m008, 1)
455 {
456 if (i001)
457 {
458 Store(0x11223344, arg0)
459 }
460 Return (0)
461 }
462 Store(0x80000000, arg0)
463 Return (Add(arg0, m008(arg0)))
464 * <<<<<<<<<<<<<<<<
465 */
466 Return (0)
467 }
468 Store(0x07000000, arg0)
469 Return (Add(arg0, m007(arg0)))
470 }
471 Store(0x00600000, arg0)
472 Return (Add(arg0, m006(arg0)))
473 }
474 Store(0x00050000, arg0)
475 Return (Add(arg0, m005(arg0)))
476 }
477 Store(0x00004000, arg0)
478 Return (Add(arg0, m004(arg0)))
479 }
480 Store(0x00000300, arg0)
481 Return (Add(arg0, m003(arg0)))
482 }
483 Store(0x00000020, arg0)
484 Return (Add(arg0, m002(arg0)))
485 }
486
487 Store(0x00000001, arg0)
488 Store(Add(arg0, m001(arg0)), Local0)
489 Return (Local0)
490 }
491
492 Store(0xabcd9876, f001)
493
494 Store(m000(f001), Local0)
495
496 if (LNotEqual(Local0, 0x07654321)) {
497 err(ts, z166, __LINE__, 0, 0, Local0, 0x07654321)
498 }
499
500 if (arg0) {
501 Store(0x11223344, Local1)
502 } else {
503 Store(0xabcd9876, Local1)
504 }
505
506 if (LNotEqual(f001, Local1)) {
507 err(ts, z166, __LINE__, 0, 0, f001, Local1)
508 }
509
510 CH03(ts, z166, 0x014, __LINE__, 0)
511 }
512
513 /*
514 * Bank Field instead of i000 (in in01)
515 *
516 * (is this test correct?)
517 */
518 Method(in39, 1, Serialized)
519 {
520 Name(ts, "in39")
521 Name(i001, 0)
522 OperationRegion(r000, SystemMemory, 0x100, 0x100)
523 Field(r000, ByteAcc, NoLock, Preserve) { f000,32, f001,32 }
524 BankField(r000, f001, 0, ByteAcc, NoLock, Preserve) { bnk0, 32 }
525
526 CH03(ts, z166, 0x015, __LINE__, 0)
527
528 Store(arg0, i001)
529
530 Method(m000, 1)
531 {
532
533 Method(m001, 1)
534 {
535 Method(m002, 1)
536 {
537 Method(m003, 1)
538 {
539 Method(m004, 1)
540 {
541 Method(m005, 1)
542 {
543 Method(m006, 1)
544 {
545 Method(m007, 1)
546 {
547 /*
548 * To exclude stack overflow
549 * >>>>>>>>>>>>>>>>
550 Method(m008, 1)
551 {
552 if (i001)
553 {
554 Store(0x11223344, arg0)
555 }
556 Return (0)
557 }
558 Store(0x80000000, arg0)
559 Return (Add(arg0, m008(arg0)))
560 * <<<<<<<<<<<<<<<<
561 */
562 Return (0)
563 }
564 Store(0x07000000, arg0)
565 Return (Add(arg0, m007(arg0)))
566 }
567 Store(0x00600000, arg0)
568 Return (Add(arg0, m006(arg0)))
569 }
570 Store(0x00050000, arg0)
571 Return (Add(arg0, m005(arg0)))
572 }
573 Store(0x00004000, arg0)
574 Return (Add(arg0, m004(arg0)))
575 }
576 Store(0x00000300, arg0)
577 Return (Add(arg0, m003(arg0)))
578 }
579 Store(0x00000020, arg0)
580 Return (Add(arg0, m002(arg0)))
581 }
582
583 Store(0x00000001, arg0)
584 Store(Add(arg0, m001(arg0)), Local0)
585 Return (Local0)
586 }
587
588 Store(0xaabbccdd, bnk0)
589 Store(m000(bnk0), Local0)
590
591 if (LNotEqual(Local0, 0x07654321)) {
592 err(ts, z166, __LINE__, 0, 0, Local0, 0x07654321)
593 }
594
595 if (arg0) {
596 Store(0x11223344, Local1)
597 } else {
598 Store(0xaabbccdd, Local1)
599 }
600
601 if (LNotEqual(bnk0, Local1)) {
602 err(ts, z166, __LINE__, 0, 0, bnk0, Local1)
603 }
604
605 CH03(ts, z166, 0x018, __LINE__, 0)
606 }
607
608 /*
609 * Index Field instead of i000 (in in01)
610 *
611 * (is this test correct?)
612 */
613 Method(in3a, 1, Serialized)
614 {
615 Name(ts, "in3a")
616 Name(i001, 0)
617 OperationRegion(r000, SystemMemory, 0x100, 0x100)
618 Field(r000, ByteAcc, NoLock, Preserve) { f000,32, f001,32 }
619 IndexField(f000, f001, ByteAcc, NoLock, Preserve) { if00, 32 }
620
621 CH03(ts, z166, 0x019, __LINE__, 0)
622
623 Store(arg0, i001)
624
625 Method(m000, 1)
626 {
627
628 Method(m001, 1)
629 {
630 Method(m002, 1)
631 {
632 Method(m003, 1)
633 {
634 Method(m004, 1)
635 {
636 Method(m005, 1)
637 {
638 Method(m006, 1)
639 {
640 Method(m007, 1)
641 {
642 /*
643 * To exclude stack overflow
644 * >>>>>>>>>>>>>>>>
645 Method(m008, 1)
646 {
647 if (i001)
648 {
649 Store(0x11223344, if00)
650 }
651 Return (0)
652 }
653 Store(0x80000000, if00)
654 Return (Add(if00, m008(if00)))
655 * <<<<<<<<<<<<<<<<
656 */
657 Return (0)
658 }
659 Store(0x07000000, if00)
660 Return (Add(if00, m007(if00)))
661 }
662 Store(0x00600000, if00)
663 Return (Add(if00, m006(if00)))
664 }
665 Store(0x00050000, if00)
666 Return (Add(if00, m005(if00)))
667 }
668 Store(0x00004000, if00)
669 Return (Add(if00, m004(if00)))
670 }
671 Store(0x00000300, if00)
672 Return (Add(if00, m003(if00)))
673 }
674 Store(0x00000020, if00)
675 Return (Add(if00, m002(if00)))
676 }
677
678 Store(0x00000001, if00)
679 Store(Add(if00, m001(if00)), Local0)
680 Return (Local0)
681 }
682
683 Store(0xabababab, if00)
684 Store(m000(if00), Local0)
685
686 /*
687 * The benchmark values for arg0==0 below
688 * are how MS actually works.
689 */
690
691 if (LNotEqual(Local0, 0x07070707)) {
692 err(ts, z166, __LINE__, 0, 0, Local0, 0x07070707)
693 }
694
695 if (arg0) {
696 Store(0x11223344, Local1)
697 } else {
698 Store(0x07070707, Local1)
699 }
700
701 if (LNotEqual(if00, Local1)) {
702 err(ts, z166, __LINE__, 0, 0, if00, Local1)
703 }
704
705 CH03(ts, z166, 0x01c, __LINE__, 0)
706 }
707
708 /*
709 * Element of Buffer instead of i000 (in in01)
710 *
711 * see in3c below
712 *
713 * Method(in3b, 1)
714 * {
715 * }
716 */
717
718 /*
719 * Element of Buffer instead of i000 (in in01)
720 *
721 * m01b+:
722 * added argument to methods and b000 passed without any use of that
723 * parameter inside the methods
724 */
725 Method(in3c, 1, Serialized)
726 {
727 Name(ts, "in3c")
728 Name(i001, 0)
729 Name(b000, Buffer() {0x11, 0x01, 0x22})
730
731 CH03(ts, z166, 0x01d, __LINE__, 0)
732
733 Store(arg0, i001)
734
735 Method(m000, 1)
736 {
737
738 Method(m001, 1)
739 {
740 Method(m002, 1)
741 {
742 Method(m003, 1)
743 {
744 Method(m004, 1)
745 {
746 Method(m005, 1)
747 {
748 Method(m006, 1)
749 {
750 Method(m007, 1)
751 {
752 Return (0)
753 }
754 Store(0x07, Index(arg0, 1))
755 Return (Add(DerefOf(Index(arg0, 1)), m007(arg0)))
756 }
757 Store(0x06, Index(arg0, 1))
758 Return (Add(DerefOf(Index(arg0, 1)), m006(arg0)))
759 }
760 Store(0x05, Index(arg0, 1))
761 Return (Add(DerefOf(Index(arg0, 1)), m005(arg0)))
762 }
763 Store(0x04, Index(arg0, 1))
764 Return (Add(DerefOf(Index(arg0, 1)), m004(arg0)))
765 }
766 Store(0x03, Index(arg0, 1))
767 Return (Add(DerefOf(Index(arg0, 1)), m003(arg0)))
768 }
769 Store(0x02, Index(arg0, 1))
770 Return (Add(DerefOf(Index(arg0, 1)), m002(arg0)))
771 }
772 Store(Add(DerefOf(Index(arg0, 1)), m001(arg0)), Local0)
773 Return (Local0)
774 }
775
776 Store(m000(b000), Local0)
777
778 if (LNotEqual(Local0, 0x1c)) {
779 err(ts, z166, __LINE__, 0, 0, Local0, 0x1c)
780 }
781
782 Store(DerefOf(Index(b000, 1)), Local0)
783
784 if (arg0) {
785 Store(0xff, Local1)
786 } else {
787 Store(0x07, Local1)
788 }
789
790 if (LNotEqual(Local0, Local1)) {
791 err(ts, z166, __LINE__, 0, 0, Local0, Local1)
792 }
793
794 CH03(ts, z166, 0x020, __LINE__, 0)
795 }
796
797 /*
798 * Element of Package instead of i000 (in in01)
799 *
800 * see in3e below
801 *
802 * Method(in3d)
803 * {
804 * }
805 */
806
807 /*
808 * Element of Package instead of i000 (in in01)
809 *
810 * m01d+:
811 * added argument to methods and b000 passed without any use of that
812 * parameter inside the methods
813 */
814 Method(in3e,, Serialized)
815 {
816 Name(ts, "in3e")
817 Name(i001, 0)
818 Name(p000, Package() {1,2,3,4})
819 Name(pp00, Package() {0x11111111, 0x00000001, 0x22223333})
820
821 CH03(ts, z166, 0x006, __LINE__, 0)
822
823 Method(m000, 1)
824 {
825
826 Method(m001, 1)
827 {
828 Method(m002, 1)
829 {
830 Method(m003, 1)
831 {
832 Method(m004, 1)
833 {
834 Method(m005, 1)
835 {
836 Method(m006, 1)
837 {
838 Method(m007, 1)
839 {
840 Return (0)
841 }
842 Store(0x07000000, Index(arg0, 1))
843 Return (Add(DerefOf(Index(arg0, 1)), m007(arg0)))
844 }
845 Store(0x00600000, Index(arg0, 1))
846 Return (Add(DerefOf(Index(arg0, 1)), m006(arg0)))
847 }
848 Store(0x00050000, Index(arg0, 1))
849 Return (Add(DerefOf(Index(arg0, 1)), m005(arg0)))
850 }
851 Store(0x00004000, Index(arg0, 1))
852 Return (Add(DerefOf(Index(arg0, 1)), m004(arg0)))
853 }
854 Store(0x00000300, Index(arg0, 1))
855 Return (Add(DerefOf(Index(arg0, 1)), m003(arg0)))
856 }
857 Store(0x00000020, Index(arg0, 1))
858 Return (Add(DerefOf(Index(arg0, 1)), m002(arg0)))
859 }
860 Store(Add(DerefOf(Index(arg0, 1)), m001(arg0)), Local0)
861 Return (Local0)
862 }
863
864 Store(m000(pp00), Local0)
865
866 if (LNotEqual(Local0, 0x07654321)) {
867 err(ts, z166, __LINE__, 0, 0, Local0, 0x07654321)
868 }
869
870 Store(DerefOf(Index(pp00, 1)), Local0)
871
872 if (LNotEqual(Local0, 0x07000000)) {
873 err(ts, z166, __LINE__, 0, 0, Local0, 0x07000000)
874 }
875
876 CH03(ts, z166, 0x009, __LINE__, 0)
877 }
878
879 Method(ini3)
880 {
881 SRMT("in30")
882 in30()
883 SRMT("in31")
884 in31()
885 SRMT("in32")
886 in32()
887 SRMT("in33")
888 in33()
889 SRMT("in34")
890 if (chk0) {
891 in34()
892 } else {
893 BLCK()
894 }
895 SRMT("in36")
896 in36()
897 SRMT("in37")
898 in37()
899 SRMT("in38-0")
900 in38(0)
901 SRMT("in39-0")
902 in39(0)
903 SRMT("in3a-0")
904 in3a(0)
905 SRMT("in3c-0")
906 in3c(0)
907 SRMT("in3e")
908 in3e()
909
910 CH03("ini3", z166, 0x000, __LINE__, 0)
911 }