Debian Codegraph @

tests/aslts/src/runtime/collections/bdemo/ACPICA/0178/DECL.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 * Bug 178:
30 *
31 * SUMMARY: Unexpected exception occurs on access to the Fields specified by BankField
32 */
33 Method (MF0A, 0, Serialized)
34 {
35 OperationRegion (R000, SystemMemory, 0x0100, 0x0100)
36 Field (R000, ByteAcc, NoLock, Preserve)
37 {
38 BNK0, 2
39 }
40
41 BankField (R000, BNK0, 0x04, ByteAcc, NoLock, Preserve)
42 {
43 BKF0, 9
44 }
45
46 CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00)
47 Local0 = BKF0 /* \MF0A.BKF0 */
48 If (Y263)
49 {
50 /*
51 * After the bug 263 fixed we started actually
52 * have there several exceptions:
53 * - on evaluation of f001 stage
54 * - and on Store-to-debug stage
55 * Check opcode of the last exception.
56 */
57 CH04 (__METHOD__, 0x02, 0x44, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_REGISTER_LIMIT */
58 }
59 Else
60 {
61 CH04 (__METHOD__, 0x00, 0x44, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_REGISTER_LIMIT */
62 }
63 }
64
65 Method (MF0B, 0, Serialized)
66 {
67 Name (I000, 0x04)
68 OperationRegion (R000, SystemMemory, 0x0100, 0x0100)
69 Field (R000, ByteAcc, NoLock, Preserve)
70 {
71 BNK0, 2
72 }
73
74 BankField (R000, BNK0, I000, ByteAcc, NoLock, Preserve)
75 {
76 BKF0, 9
77 }
78
79 CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00)
80 Local0 = BKF0 /* \MF0B.BKF0 */
81 CH04 (__METHOD__, 0x00, 0x44, 0x00, __LINE__, 0x00, 0x00) /* AE_AML_REGISTER_LIMIT */
82 }
83
84 Method (MF0C, 0, Serialized)
85 {
86 OperationRegion (R000, SystemMemory, 0x0100, 0x0100)
87 Field (R000, ByteAcc, NoLock, Preserve)
88 {
89 BNK0, 2
90 }
91
92 BankField (R000, BNK0, 0x00, ByteAcc, NoLock, Preserve)
93 {
94 BKF0, 9
95 }
96
97 CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00)
98 Local0 = BKF0 /* \MF0C.BKF0 */
99 CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00)
100 }
101
102 Method (MF0D, 0, Serialized)
103 {
104 Name (I000, 0x00)
105 OperationRegion (R000, SystemMemory, 0x0100, 0x0100)
106 Field (R000, ByteAcc, NoLock, Preserve)
107 {
108 BNK0, 2
109 }
110
111 BankField (R000, BNK0, (I000 + 0x00), ByteAcc, NoLock, Preserve)
112 {
113 BKF0, 9
114 }
115
116 CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00)
117 Local0 = BKF0 /* \MF0D.BKF0 */
118 CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00)
119 }
120
121 Method (MF0E, 0, Serialized)
122 {
123 Name (I000, 0x00)
124 OperationRegion (R000, SystemMemory, 0x0100, 0x0100)
125 Field (R000, ByteAcc, NoLock, Preserve)
126 {
127 BNK0, 2
128 }
129
130 BankField (R000, BNK0, I000, ByteAcc, NoLock, Preserve)
131 {
132 BKF0, 9
133 }
134
135 CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00)
136 Local0 = BKF0 /* \MF0E.BKF0 */
137 CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00)
138 }