| 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 200 (local-bugzilla-352): |
| 30 |
* |
| 31 |
* SUMMARY: the code path taken after exception is incorrect |
| 32 |
* |
| 33 |
* AcpiPsParseLoop --> AcpiDsGetPredicateValue --> FAILURE -->> |
| 34 |
* doesn't fall into AcpiDsMethodError routine after FAILURE (exception) |
| 35 |
* (the ASLTS-testing stops after these FAILUREs). |
| 36 |
*/ |
| 37 |
Method (MFB4, 0, NotSerialized) |
| 38 |
{ |
| 39 |
Debug = "Message from mfb4 -------------------------------!!!" |
| 40 |
} |
| 41 |
|
| 42 |
Method (MFB5, 0, NotSerialized) |
| 43 |
{ |
| 44 |
Local7 = 0x00 |
| 45 |
Divide (0x01, Local7, Local2) |
| 46 |
If ((Local2 != 0x00)) |
| 47 |
{ |
| 48 |
MFB4 () |
| 49 |
} |
| 50 |
} |
| 51 |
|
| 52 |
Method (MFB6, 0, NotSerialized) |
| 53 |
{ |
| 54 |
Local7 = 0x00 |
| 55 |
Divide (0x01, Local7, Local2) |
| 56 |
If ((Local2 != 0x00)) |
| 57 |
{ |
| 58 |
Debug = "Message 0 !!!!!!!!!!!!!!!!!!!!!!" |
| 59 |
MFB4 () |
| 60 |
} |
| 61 |
} |
| 62 |
|
| 63 |
Method (MFB7, 0, NotSerialized) |
| 64 |
{ |
| 65 |
Local7 = 0x00 |
| 66 |
Divide (0x01, Local7, Local2) |
| 67 |
} |
| 68 |
|
| 69 |
Method (MFB8, 0, NotSerialized) |
| 70 |
{ |
| 71 |
Local7 = 0x00 |
| 72 |
Divide (0x01, Local7, Local2) |
| 73 |
While ((Local2 != 0x00)) |
| 74 |
{ |
| 75 |
MFB4 () |
| 76 |
Break |
| 77 |
} |
| 78 |
} |
| 79 |
|
| 80 |
Method (MFB9, 0, NotSerialized) |
| 81 |
{ |
| 82 |
Local7 = 0x00 |
| 83 |
Divide (0x01, Local7, Local2) |
| 84 |
While ((Local2 != 0x00)) |
| 85 |
{ |
| 86 |
Debug = "Message 1 !!!!!!!!!!!!!!!!!!!!!!" |
| 87 |
MFB4 () |
| 88 |
Break |
| 89 |
} |
| 90 |
} |
| 91 |
|
| 92 |
Method (MFBA, 0, Serialized) |
| 93 |
{ |
| 94 |
Local7 = 0x00 |
| 95 |
Divide (0x01, Local7, Local2) |
| 96 |
Switch ((Local2 != 0x00)) |
| 97 |
{ |
| 98 |
Case (0x00) |
| 99 |
{ |
| 100 |
MFB4 () |
| 101 |
} |
| 102 |
|
| 103 |
} |
| 104 |
} |
| 105 |
|
| 106 |
Method (MFBB, 0, Serialized) |
| 107 |
{ |
| 108 |
Local7 = 0x00 |
| 109 |
Divide (0x01, Local7, Local2) |
| 110 |
Switch ((Local2 != 0x00)) |
| 111 |
{ |
| 112 |
Case (0x00) |
| 113 |
{ |
| 114 |
Debug = "Message 2 !!!!!!!!!!!!!!!!!!!!!!" |
| 115 |
MFB4 () |
| 116 |
} |
| 117 |
|
| 118 |
} |
| 119 |
} |
| 120 |
|
| 121 |
Method (MFBC, 0, NotSerialized) |
| 122 |
{ |
| 123 |
Local7 = 0x00 |
| 124 |
Divide (0x01, Local7, Local2) |
| 125 |
Return (Local2) |
| 126 |
} |
| 127 |
|
| 128 |
Method (MFBD, 0, NotSerialized) |
| 129 |
{ |
| 130 |
If (MFBC ()) |
| 131 |
{ |
| 132 |
Debug = "Message 3 !!!!!!!!!!!!!!!!!!!!!!" |
| 133 |
} |
| 134 |
} |
| 135 |
|
| 136 |
Method (MFBE, 0, NotSerialized) |
| 137 |
{ |
| 138 |
While (MFBC ()) |
| 139 |
{ |
| 140 |
Break |
| 141 |
} |
| 142 |
} |
| 143 |
|
| 144 |
Method (MFBF, 0, Serialized) |
| 145 |
{ |
| 146 |
Switch (ToInteger (MFBC ())) |
| 147 |
{ |
| 148 |
Case (0x00) |
| 149 |
{ |
| 150 |
Debug = "Message 4 !!!!!!!!!!!!!!!!!!!!!!" |
| 151 |
} |
| 152 |
|
| 153 |
} |
| 154 |
} |
| 155 |
|
| 156 |
Method (MFC0, 0, NotSerialized) |
| 157 |
{ |
| 158 |
/* |
| 159 |
* The code path taken after the exception here |
| 160 |
* is not correct for each of these Method calls: |
| 161 |
*/ |
| 162 |
SRMT ("mfb5") |
| 163 |
If (Y200) |
| 164 |
{ |
| 165 |
CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) |
| 166 |
MFB5 () |
| 167 |
CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) |
| 168 |
} |
| 169 |
Else |
| 170 |
{ |
| 171 |
BLCK () |
| 172 |
} |
| 173 |
|
| 174 |
SRMT ("mfbd") |
| 175 |
If (Y200) |
| 176 |
{ |
| 177 |
CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) |
| 178 |
MFBD () |
| 179 |
CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) |
| 180 |
} |
| 181 |
Else |
| 182 |
{ |
| 183 |
BLCK () |
| 184 |
} |
| 185 |
|
| 186 |
SRMT ("mfbe") |
| 187 |
If (Y200) |
| 188 |
{ |
| 189 |
CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) |
| 190 |
MFBE () |
| 191 |
CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) |
| 192 |
} |
| 193 |
Else |
| 194 |
{ |
| 195 |
BLCK () |
| 196 |
} |
| 197 |
|
| 198 |
/* |
| 199 |
* These work Ok: |
| 200 |
*/ |
| 201 |
SRMT ("mfb6") |
| 202 |
CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) |
| 203 |
MFB6 () |
| 204 |
CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) |
| 205 |
SRMT ("mfb7") |
| 206 |
CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) |
| 207 |
MFB7 () |
| 208 |
CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) |
| 209 |
SRMT ("mfb8") |
| 210 |
CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) |
| 211 |
MFB8 () |
| 212 |
CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) |
| 213 |
SRMT ("mfb9") |
| 214 |
CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) |
| 215 |
MFB9 () |
| 216 |
CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) |
| 217 |
SRMT ("mfba") |
| 218 |
CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) |
| 219 |
MFBA () |
| 220 |
CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) |
| 221 |
SRMT ("mfbb") |
| 222 |
CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) |
| 223 |
MFBB () |
| 224 |
CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) |
| 225 |
SRMT ("mfbf") |
| 226 |
CH03 (__METHOD__, 0x00, __LINE__, 0x00, 0x00) |
| 227 |
MFBF () |
| 228 |
CH04 (__METHOD__, 0x00, 0xFF, 0x00, __LINE__, 0x00, 0x00) |
| 229 |
Debug = "mfc0 ==== successfully returned to mfc0; finished !!!!!" |
| 230 |
} |