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 263: 30 * 31 * SUMMARY: The sequence of evaluating operands of expression with the named objects is violated 32 */ 33 Method (M026, 0, NotSerialized) 34 { 35 Method (MM00, 0, Serialized) 36 { 37 Name (I000, 0x01) 38 Method (M001, 0, NotSerialized) 39 { 40 I000 = 0x50000000 41 Return (I000) /* \M026.MM00.I000 */ 42 } 43 44 Store ((I000 + M001 ()), Local0) 45 Debug = Local0 46 Debug = I000 /* \M026.MM00.I000 */ 47 If ((Local0 != 0x50000001)) 48 { 49 ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x50000001) 50 } 51 52 If ((I000 != 0x50000000)) 53 { 54 ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, 0x50000000) 55 } 56 } 57 58 Method (MM01, 1, Serialized) 59 { 60 Name (I000, 0x01) 61 Name (I001, 0x00) 62 Name (P000, Package (0x04) 63 { 64 0x01, 65 0x02, 66 0x03, 67 0x04 68 }) 69 I001 = Arg0 70 Method (M001, 0, NotSerialized) 71 { 72 Method (M002, 0, NotSerialized) 73 { 74 Method (M003, 0, NotSerialized) 75 { 76 Method (M004, 0, NotSerialized) 77 { 78 Method (M005, 0, NotSerialized) 79 { 80 Method (M006, 0, NotSerialized) 81 { 82 Method (M007, 0, NotSerialized) 83 { 84 Method (M008, 0, NotSerialized) 85 { 86 If (I001) 87 { 88 CopyObject (P000, I000) /* \M026.MM01.I000 */ 89 } 90 91 Return (0x00) 92 } 93 94 I000 = 0x80000000 95 Return ((I000 + M008 ())) 96 } 97 98 I000 = 0x07000000 99 Return ((I000 + M007 ())) 100 } 101 102 I000 = 0x00600000 103 Return ((I000 + M006 ())) 104 } 105 106 I000 = 0x00050000 107 Return ((I000 + M005 ())) 108 } 109 110 I000 = 0x4000 111 Return ((I000 + M004 ())) 112 } 113 114 I000 = 0x0300 115 Return ((I000 + M003 ())) 116 } 117 118 I000 = 0x20 119 Return ((I000 + M002 ())) 120 } 121 122 Store ((I000 + M001 ()), Local0) 123 If ((Local0 != 0x87654321)) 124 { 125 ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, Local0, 0x87654321) 126 } 127 128 If ((I000 != 0x80000000)) 129 { 130 ERR (__METHOD__, ZFFF, __LINE__, 0x00, 0x00, I000, 0x80000000) 131 } 132 } 133 134 MM00 () 135 MM01 (0x00) 136 } 137