1/* 2 * Some or all of this work - Copyright (c) 2006 - 2016, 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 * References 31 * 32 * (exceptions) 33 */ 34 35Name(z109, 109) 36 37/* 38 * Check exceptions for unavailable types of Store 39 */ 40Method(m1b3,, Serialized) 41{ 42 Name(ts, "m1b3") 43 44 Store(z109, c081) // absolute index of file initiating the checking 45 46 Method(m000, 1) 47 { 48 if (arg0) { 49 Store(0, Local7) 50 } 51 CH03(ts, z109, 0, 0, 0) 52 Store(Local7, Local0) 53 if (LNot(SLCK)) 54 { 55 CH04(ts, 0, 0xff, z109, 1, 0, 0) 56 } 57 } 58 59 Method(m901) { return (0xabc0012) } 60 61 m000(0) 62 63 Store(i900, Local0) 64 Store(ObjectType(Local0), Local7) 65 if (LNotEqual(Local7, c009)) { 66 err(ts, z109, 2, 0, 0, Local7, c009) 67 } 68 69 Store(s900, Local0) 70 Store(ObjectType(Local0), Local7) 71 if (LNotEqual(Local7, c00a)) { 72 err(ts, z109, 3, 0, 0, Local7, c00a) 73 } 74 75 Store(b900, Local0) 76 Store(ObjectType(Local0), Local7) 77 if (LNotEqual(Local7, c00b)) { 78 err(ts, z109, 4, 0, 0, Local7, c00b) 79 } 80 81 Store(p900, Local0) 82 Store(ObjectType(Local0), Local7) 83 if (LNotEqual(Local7, c00c)) { 84 err(ts, z109, 5, 0, 0, Local7, c00c) 85 } 86 87 Store(f900, Local0) 88 Store(ObjectType(Local0), Local7) 89 if (LNotEqual(Local7, c009)) { 90 err(ts, z109, 6, 0, 0, Local7, c009) 91 } 92 93/* 94// Removed 09/2015. iASL now disallows these stores 95 96 CH03(ts, z109, 7, 0, 0) 97 Store(d900, Local0) 98 if (LNot(SLCK)){ 99 CH04(ts, 0, 0xff, z109, 8, 0, 0) 100 } 101 102 CH03(ts, z109, 9, 0, 0) 103 Store(e900, Local0) 104 if (LNot(SLCK)){ 105 CH04(ts, 0, 0xff, z109, 10, 0, 0) 106 } 107*/ 108 /* 109 * 21.12.2005. 110 * No exception now. 111 * Bug 114: could work improperly by the same reason as Bug 114. 112 * MS compiler allow this situation, iASL compiler just allows this 113 * for compatibility, iASL assume this is compiled to a method 114 * invacation. 115 */ 116 if (X114) { 117 CH03(ts, z109, 11, 0, 0) 118 Store(m901, Local0) 119 //CH04(ts, 0, 0xff, z109, 12, 0, 0) 120 } 121 122/* 123// Removed 09/2015. iASL now disallows these stores 124 125 CH03(ts, z109, 13, 0, 0) 126 Store(mx90, Local0) 127 if (LNot(SLCK)){ 128 CH04(ts, 0, 0xff, z109, 14, 0, 0) 129 } 130 131 CH03(ts, z109, 15, 0, 0) 132 Store(r900, Local0) 133 if (LNot(SLCK)){ 134 CH04(ts, 0, 0xff, z109, 16, 0, 0) 135 } 136 137 CH03(ts, z109, 17, 0, 0) 138 Store(pw90, Local0) 139 if (LNot(SLCK)){ 140 CH04(ts, 0, 0xff, z109, 18, 0, 0) 141 } 142 143 CH03(ts, z109, 19, 0, 0) 144 Store(pr90, Local0) 145 if (LNot(SLCK)){ 146 CH04(ts, 0, 0xff, z109, 20, 0, 0) 147 } 148 149 CH03(ts, z109, 21, 0, 0) 150 Store(tz90, Local0) 151 if (LNot(SLCK)) 152 { 153 CH04(ts, 0, 0xff, z109, 22, 0, 0) 154 } 155*/ 156 157 Store(bf90, Local0) 158 Store(ObjectType(Local0), Local7) 159 if (LNotEqual(Local7, c009)) { 160 err(ts, z109, 23, 0, 0, Local7, c009) 161 } 162} 163