From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (EUR04-VI1-obe.outbound.protection.outlook.com [40.107.8.73]) by mx.groups.io with SMTP id smtpd.web08.1697.1620760509775328716 for ; Tue, 11 May 2021 12:15:10 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=dEIIqrRB; spf=pass (domain: arm.com, ip: 40.107.8.73, mailfrom: sami.mujawar@arm.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=G3Y94nIv2I1CzoklFh/jRIDWULcW/dcez2Ejr8gjsyE=; b=dEIIqrRBESarc/9h+4pG5n19KQtv6FAkD7G0/39x65X2/Mw5J+/tiQOEFTEaAM7fxc/vQTgzGpivcWf586tR08a63RweXKeylA5Nkm6spMsQYe+cX4+alc+DYg+idRBIDajlIGAEkNfD5dBpfH3xZt5sAk08V6pLwZefCFh2gKU= Received: from DBBPR09CA0025.eurprd09.prod.outlook.com (2603:10a6:10:d4::13) by VI1PR0801MB1727.eurprd08.prod.outlook.com (2603:10a6:800:5a::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.27; Tue, 11 May 2021 19:15:06 +0000 Received: from DB5EUR03FT052.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:d4:cafe::65) by DBBPR09CA0025.outlook.office365.com (2603:10a6:10:d4::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.25 via Frontend Transport; Tue, 11 May 2021 19:15:06 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; edk2.groups.io; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;edk2.groups.io; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT052.mail.protection.outlook.com (10.152.21.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.25 via Frontend Transport; Tue, 11 May 2021 19:15:06 +0000 Received: ("Tessian outbound 8ca198b738d3:v91"); Tue, 11 May 2021 19:15:06 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: c4cf614e14277e10 X-CR-MTA-TID: 64aa7808 Received: from dfabaf64e514.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id E8C1DF41-AEDF-41C9-9ED1-4E2BC3E05AFC.1; Tue, 11 May 2021 19:15:00 +0000 Received: from EUR04-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id dfabaf64e514.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 11 May 2021 19:15:00 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=M0Zzu6vXxNR8U9YHf403FQXnLDLQ8EVgCHA3hFBozV3i2rsBe/4YIBxiOQpE5EQOEvosX4t5rMxCWOLMXqSvnnEyqQ5RBatQq7V4ACOxVKGn3IfZ9kId3+al2yZ33u9w7C0qfGlBD8gZ96W38CWAMUnGTSwjGdQ0krePZiFhxVkI2y0eDS40zg2Mf1DTCJr/SjcWLQgAHgnU037L6y9jAuInpKJjd59rk4n30ffHmO6FfMJMDLzO3N4xDtU7tmF+obPo9K0BxrKM3ZRUDyIjl5aHqp/b/aCCqKTvrba82MHtV2OsJDZfPEmlspL/e7O2Akt7cg4JftjEiZ+C5Tla6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=G3Y94nIv2I1CzoklFh/jRIDWULcW/dcez2Ejr8gjsyE=; b=mX/SZe3rVl6MP/fhT/36FH9ueHi0yWFmM/fMKpFwLMb8NPQC0StkBHQmoF5FhG9s3v6fM/Lci8N2pnd4tx5zR99hbEtA3HiythE+PDYLitmJZWfJly8nuKdJctoNhHcZuH6oiFj8moQCkkhvtRHyILlBN/C9/nuL4XZCO8/DliVuQe0WWBAJ+3AjO4+skE+XfPB5nbA/2RS4nV9vbfIYBXatSPXgk4u3Kx1GdAB3BZReCeyMRXGFVoLQhEd8ECL+IqBAW03rzlJxzTGsBYnu+8myyVcfERQ88STzWnU5CDAtAOvLi14rvYSU0pkqGicpzZlW3RfYB2MdxTG0JgojdA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=G3Y94nIv2I1CzoklFh/jRIDWULcW/dcez2Ejr8gjsyE=; b=dEIIqrRBESarc/9h+4pG5n19KQtv6FAkD7G0/39x65X2/Mw5J+/tiQOEFTEaAM7fxc/vQTgzGpivcWf586tR08a63RweXKeylA5Nkm6spMsQYe+cX4+alc+DYg+idRBIDajlIGAEkNfD5dBpfH3xZt5sAk08V6pLwZefCFh2gKU= Authentication-Results-Original: linaro.org; dkim=none (message not signed) header.d=none;linaro.org; dmarc=none action=none header.from=arm.com; Received: from AS8PR08MB6806.eurprd08.prod.outlook.com (2603:10a6:20b:39b::12) by AM6PR08MB3159.eurprd08.prod.outlook.com (2603:10a6:209:46::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.26; Tue, 11 May 2021 19:14:58 +0000 Received: from AS8PR08MB6806.eurprd08.prod.outlook.com ([fe80::80cb:878d:c8f1:2688]) by AS8PR08MB6806.eurprd08.prod.outlook.com ([fe80::80cb:878d:c8f1:2688%7]) with mapi id 15.20.4108.031; Tue, 11 May 2021 19:14:57 +0000 Subject: Re: [PATCH 4/5] StandaloneMmPkg: fix pointer/int casts against 32bit architectures To: Etienne Carriere , devel@edk2.groups.io Cc: Achin Gupta , Ard Biesheuvel , Jiewen Yao , Leif Lindholm , Sughosh Ganu References: <20210504152048.8739-1-etienne.carriere@linaro.org> <20210504152048.8739-5-etienne.carriere@linaro.org> From: "Sami Mujawar" Message-ID: <161b3a25-2843-7187-243b-fac54164f78a@arm.com> Date: Tue, 11 May 2021 20:14:54 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.0.1 In-Reply-To: <20210504152048.8739-5-etienne.carriere@linaro.org> X-Originating-IP: [217.140.106.52] X-ClientProxiedBy: LO4P123CA0072.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:153::23) To AS8PR08MB6806.eurprd08.prod.outlook.com (2603:10a6:20b:39b::12) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [10.1.196.43] (217.140.106.52) by LO4P123CA0072.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:153::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.24 via Frontend Transport; Tue, 11 May 2021 19:14:56 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 50a99e75-5692-4923-187a-08d914b1162c X-MS-TrafficTypeDiagnostic: AM6PR08MB3159:|VI1PR0801MB1727: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:10000;OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: rMye047ZqTeakGxhsqUHoSKY8xu17SJRwnIki4ffrNPFB90rX7hNGY7XAkqwUukSUlRM/9SuQ+BXM4N7HEskjD6SYY07e6a87oj11DoYjFPJOyRMn4dG5c6bl0o0c3KQ11oUGHe+qcWKqC4oyUvNN9p1lKNFWErYluWnOgNFIt//1vT6WBINrrcAATqvCgzgVY5b68Pv3imNWj3/Konr/wIfk8Z/4C6ylAS7R14crJKdi9x9BAQpBoj2qt63B9WPvNKOTIde6+Ey/Z+z4fr0hHvmOnxac7pmvRGsAgREy2eN9/xQuSiu7MDbFZEoVYIevzWVbbh96rDJOeH4YRn5Gsse1aKu3vQxL/tYwFxmZFhSNGa2cNe/iLTlFriCHuzsbiy+W8e++PjI5D0+2e/YxwkFPYTHubwvGig5lTYF1AkzIJQoktpaQXtjcE3Qeh9fJk3bdTK+utmBoOYN3lGJyFIZ5BlLUVpgFdxdMwKXlg/61skMrqOi2Emq/5a9dAN8cWb+4J3zf1fNoTQhy5KoT7ra7Fg6bqL3QJiJsbEiYVJMd0i2P1QdYWYIicrp1jo/yuuhcK9B/Fg82xOoW+EvurQuPoo0vF+BbXgHqQmaO9W64fIM6ImKcaglRTrbdHjnubCZJFYKlew9J9zOGc341nyCdbnGMZhMXkZRgNfaEU5NLsbZ+T/5RL9H8uQzhE86ap8OS39glVUgaJGK53tQ40wRnVTIdK1KNLuKKCMhMgvTXsZvRQ5fIEHgP0f0xeOiVTm3+g0vU5+7lLEIGGviH8jlvuvJOIs/3AFJCl+Qth0= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS8PR08MB6806.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(6029001)(4636009)(396003)(136003)(39840400004)(366004)(376002)(346002)(53546011)(26005)(52116002)(2906002)(31696002)(83380400001)(38100700002)(66476007)(66556008)(8936002)(186003)(31686004)(54906003)(6486002)(8676002)(38350700002)(66946007)(956004)(4326008)(16576012)(316002)(86362001)(44832011)(2616005)(966005)(16526019)(478600001)(36756003)(5660300002)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?B?UGZYTllvODV2d2l1SGJLY0lqRVpaSjR3TUYwZUlMeGpWN2l5Qks3ZUVQWkF6?= =?utf-8?B?aU10N1RtVWtEa3ZzVmp4K2RSSDZvVnBpbXIyR0VRUzh2TzFTSUVqeDBVUUVG?= =?utf-8?B?YmZNRFNiMVBKNkQyRGtKQ096Q3BGZllFdmdlam50TUttWWRnUk9pdFlwMXZ5?= =?utf-8?B?dkUyQWVqWTNGWVYwdEIyZnNuSlBPNWptUFNDZzNnbnRLbVQ4OXZyWE5LWHpS?= =?utf-8?B?aEtNdnUxQ1dObm85cjZxSjdNTWRsbFZ5dW1ORDJOVW05NUo0Q3ptOW5USEMv?= =?utf-8?B?L05QTkRMSlJJT2tvOWloSXVuaWNzcFBWWENQK0ZlcVdISG5FbVhjMitFUXpQ?= =?utf-8?B?UUo5Zkk3STlGdlg5d2VTZko3NWhDMmhSVzNPNUh2L0VhU3ZsUjJ5eW5XaFU2?= =?utf-8?B?TVlCNkduK1p5bWJXVkxjSHhPQlFGMERRaTFDSFhtSUEyajF3WEREeEdPV05W?= =?utf-8?B?a2drdU4vU0EwYXlGaFZkOUtGWkl0MjBCakthWlg1d0xOeWEreEZUcnRyZ25T?= =?utf-8?B?d0NCM0RGR2RpZUhmWkVXMy8zTnBBTVFiS25DSFpzMG92ejFrbjNnR0Y3ZktL?= =?utf-8?B?ZFNwVmIwaTBuRytibm12V1hwdytEdUp1SjQvVlFwUk1TbkpOYSs4ZHgrNDM5?= =?utf-8?B?SHlqWVJOK1AyVFRFby9Xc0RpWWxUNnhaenIzZ3B2Viswc1VuMWVSNWx4dFpL?= =?utf-8?B?WWNyZkd5VTNFRlUrQ1U2WVo5cXd4eGFMd0hoUTg5cFhpeWk1S2o1eTh2c0F1?= =?utf-8?B?SG5sWlRYYWZFeFBoeXJRZ0MxejVaTVZINXgrSHRJQW1RV25JbFNKUXZIbFBG?= =?utf-8?B?aHM4enFGOWxFNHdyN1NUUEN2S0h4alpmeWc5aGRkc2Y2VW1ERUFBN0IzRUUy?= =?utf-8?B?bzJWQW83ck0zUndmeS9qUGw4cUlKbEdrR0JXZzU3WUJDR1FpMlRMeVdESElB?= =?utf-8?B?VzlITkpKUXkzRGVkbXF3dGtWYXIzUkRUM2l6QnF3V01qdWJpNnF2a01OUG9y?= =?utf-8?B?YkloRzRSbEtzZ2o2QytvMk5YUnpyektKK2hUT05SdXR0YmswdHdVTlNtVmFz?= =?utf-8?B?aGl6M3lyeDJhOHUwTmVRclpkNEtCYTdNU2k3ZGlEd2FWY2N3RjBGbmQyRUZG?= =?utf-8?B?MmgzTEQ4ZU9XQU16S2tBTDd4RmxFTkFzOGVWM1Rub0ZOUHlUR01INXUyTTBa?= =?utf-8?B?bE15NmtNVzFHL2tYMk5kVGFsR3NCRzBFdk5JNkVVdXlZbWsvZ2NxTFcyNHdN?= =?utf-8?B?VCttNVVWSkZQcDZkOG1NK051Y0J0cEFTMW0wMzRUM2hoWDVpdG9ZeE0wWGhv?= =?utf-8?B?clRHN2VjaVBGTVh6TUpXeG5FbTlpakt2anVadCtVWUV5VFdPMGdMVTUreGhC?= =?utf-8?B?T0JVSlVCMm1UbDB4dHBTa2JxYXpqbFdyZE15N2V0OW5HdDNmeU5kbDgrTDd6?= =?utf-8?B?Qk1wV3FWdjF2QWxtbFNNYWlPdURGeHBySUZFQ3pFekd5Mll1Y29MM25IamVV?= =?utf-8?B?Nkx6RFJXRUR4SGRpcU1EMXpZSjlOMWxJNnR1Y3FwZmRHeEplRyt4WkVvY0Q0?= =?utf-8?B?TzlySk9qR1FOaE5FL0I4VUJaWm9ockpZZTM3cFFaMnB4c1Y3VE11VGV3eVIy?= =?utf-8?B?QmdDUWVxZEpQcHRDWTkwKzV0MFprVXFqV2FNMk50ZVZGa1FFOHlZbGhCSUha?= =?utf-8?B?U2FnVmZDN05qQWQwVFc1WVpkSUxpcnN4ZTFsblgvZ1JkbkFCekcyRHk4Q3l3?= =?utf-8?Q?51xET2bl8U9Hnkwi79uBTYDgPhpdFAZ8JTKnYx+?= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB3159 Original-Authentication-Results: linaro.org; dkim=none (message not signed) header.d=none;linaro.org; dmarc=none action=none header.from=arm.com; Return-Path: Sami.Mujawar@arm.com X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT052.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 9ec931f1-cc94-4c02-b353-08d914b11072 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Q6u8+GGArIP8hMiqmrwPICvwGKZ+/E0dGzIhCBoNqOgzfvBiGewSmC9Zlf1ObGh0atJvbdjuPzUbZ/m8GLJSpu865emDzzyi6gNOaM9vWgyZy/q+n2WdbKuxXFtQ98h25rruxDuRgt9/m8iAT4oE9S11zvAwxO7lSU4tiNenuhI7qS8IRcMfJnV+mrzsQ0qY08Agx4boFEMNCGrgL6S0rsE4Ae+UFzs6u/ES/I/cIGVuPvrv8T453E4D/BuZi0iGZ9cXt//8lsri+5AKzrb2UI/oVvHxHEEFGqP+jikjHWtP5DpRRkcgVGqQ0oM1bdFUIJhzyap/EVdguujLSuiaOzyhl1ECphdPeLCOUVGotEyX4LKH5QznDbAHsRRa1RtPBGPnb/bAWp2A9cUe5joleEA9UnNgAXYpKMcJchPckJRzGsamzsFfn3Etd+7J6e5OXQqA4uKHduCvaBQcVzploqcdkrre/DDNdzNIydBmp2VPEZ8ZZ8xJLl9ik/d8cxqAVENUXSzxAvfNp8JlYC68jiVPDaSQOCcg03VKp1adRfhfGTf3UYOHSJ9OhAbkg6/6xy6G+U53hNaUtmD3HjvDpTM5TCx+OzffSNbCo8fUr0QKaQJCwrEdFF83idtC//QpYUFDRF2xSWz/R6UQvJLvPnrQfVStbM8EoOVq3Hghl0sj5UuMrepTklFHBqXXwf0ljtpa5azTUm9fA1Tis0RTFxq6OxJ+Xa1+FpX4OWj+h1CZvDvEV0RO9w+2uJ1+Pz9fk5R9ogayHedOuLQQqtHksA== X-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFS:(6029001)(4636009)(39840400004)(136003)(376002)(396003)(346002)(36840700001)(46966006)(4326008)(36756003)(107886003)(44832011)(70586007)(83380400001)(2906002)(53546011)(26005)(36860700001)(47076005)(70206006)(8936002)(8676002)(356005)(966005)(478600001)(31696002)(336012)(86362001)(316002)(16576012)(956004)(2616005)(6486002)(16526019)(81166007)(31686004)(5660300002)(186003)(54906003)(82310400003)(43740500002);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 May 2021 19:15:06.3316 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 50a99e75-5692-4923-187a-08d914b1162c X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DB5EUR03FT052.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0801MB1727 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Content-Language: en-GB Hi Etienne, Thank you for this patch. A space should not be there between a unary operator add its operand. See https://edk2-docs.gitbook.io/edk-ii-c-coding-standards-specification/5_sour= ce_files/52_spacing#5-2-2-3-do-not-put-space-between-unary-operators-and-th= eir-object However, the existing code does not follow this anyways. Reviewed-by: Sami Mujawar Regards, Sami Mujawar On 04/05/2021 04:20 PM, Etienne Carriere wrote: > Use intermediate (UINTN) cast when casting int from/to pointer. This > is needed as UINT64 values cast from/to 32bit pointer for 32bit > architectures. > > Cc: Achin Gupta > Cc: Ard Biesheuvel > Cc: Jiewen Yao > Cc: Leif Lindholm > Cc: Sami Mujawar > Cc: Sughosh Ganu > Signed-off-by: Etienne Carriere > --- > StandaloneMmPkg/Drivers/StandaloneMmCpu/AArch64/StandaloneMmCpu.c = | 8 ++++---- > StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/CreateHobLis= t.c | 14 +++++++------- > StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/StandaloneMm= CoreEntryPoint.c | 2 +- > 3 files changed, 12 insertions(+), 12 deletions(-) > > diff --git a/StandaloneMmPkg/Drivers/StandaloneMmCpu/AArch64/StandaloneMm= Cpu.c b/StandaloneMmPkg/Drivers/StandaloneMmCpu/AArch64/StandaloneMmCpu.c > index 6884095c49..d4590bcd19 100644 > --- a/StandaloneMmPkg/Drivers/StandaloneMmCpu/AArch64/StandaloneMmCpu.c > +++ b/StandaloneMmPkg/Drivers/StandaloneMmCpu/AArch64/StandaloneMmCpu.c > @@ -164,8 +164,8 @@ StandaloneMmCpuInitialize ( > > // Share the entry point of the CPU driver > DEBUG ((DEBUG_INFO, "Sharing Cpu Driver EP *0x%lx =3D 0x%lx\n", > - (UINT64) CpuDriverEntryPointDesc->ArmTfCpuDriverEpPtr, > - (UINT64) PiMmStandaloneArmTfCpuDriverEntry)); > + (UINTN) CpuDriverEntryPointDesc->ArmTfCpuDriverEpPtr, > + (UINTN) PiMmStandaloneArmTfCpuDriverEntry)); > *(CpuDriverEntryPointDesc->ArmTfCpuDriverEpPtr) =3D PiMmStandaloneArm= TfCpuDriverEntry; > > // Find the descriptor that contains the whereabouts of the buffer fo= r > @@ -180,8 +180,8 @@ StandaloneMmCpuInitialize ( > return Status; > } > > - DEBUG ((DEBUG_INFO, "mNsCommBuffer.PhysicalStart - 0x%lx\n", (UINT64) = NsCommBufMmramRange->PhysicalStart)); > - DEBUG ((DEBUG_INFO, "mNsCommBuffer.PhysicalSize - 0x%lx\n", (UINT64) N= sCommBufMmramRange->PhysicalSize)); > + DEBUG ((DEBUG_INFO, "mNsCommBuffer.PhysicalStart - 0x%lx\n", (UINTN) N= sCommBufMmramRange->PhysicalStart)); > + DEBUG ((DEBUG_INFO, "mNsCommBuffer.PhysicalSize - 0x%lx\n", (UINTN) Ns= CommBufMmramRange->PhysicalSize)); > > CopyMem (&mNsCommBuffer, NsCommBufMmramRange, sizeof(EFI_MMRAM_DESCRI= PTOR)); > DEBUG ((DEBUG_INFO, "mNsCommBuffer: 0x%016lx - 0x%lx\n", mNsCommBuffe= r.CpuStart, mNsCommBuffer.PhysicalSize)); > diff --git a/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/C= reateHobList.c b/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64= /CreateHobList.c > index e8fb96bd6e..4d4cf3d5ff 100644 > --- a/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/CreateHo= bList.c > +++ b/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/CreateHo= bList.c > @@ -72,14 +72,14 @@ CreateHobListFromBootInfo ( > > // Create a hoblist with a PHIT and EOH > HobStart =3D HobConstructor ( > - (VOID *) PayloadBootInfo->SpMemBase, > + (VOID *) (UINTN) PayloadBootInfo->SpMemBase, > (UINTN) PayloadBootInfo->SpMemLimit - PayloadBootInfo->= SpMemBase, > - (VOID *) PayloadBootInfo->SpHeapBase, > - (VOID *) (PayloadBootInfo->SpHeapBase + PayloadBootInfo->= SpHeapSize) > + (VOID *) (UINTN) PayloadBootInfo->SpHeapBase, > + (VOID *) (UINTN) (PayloadBootInfo->SpHeapBase + PayloadBo= otInfo->SpHeapSize) > ); > > // Check that the Hoblist starts at the bottom of the Heap > - ASSERT (HobStart =3D=3D (VOID *) PayloadBootInfo->SpHeapBase); > + ASSERT (HobStart =3D=3D (VOID *) (UINTN) PayloadBootInfo->SpHeapBase); > > // Build a Boot Firmware Volume HOB > BuildFvHob (PayloadBootInfo->SpImageBase, PayloadBootInfo->SpImageSiz= e); > @@ -190,9 +190,9 @@ CreateHobListFromBootInfo ( > MmramRanges[3].RegionState =3D EFI_CACHEABLE | EFI_ALLOCATED; > > // Base and size of heap memory shared by all cpus > - MmramRanges[4].PhysicalStart =3D (EFI_PHYSICAL_ADDRESS) HobStart; > - MmramRanges[4].CpuStart =3D (EFI_PHYSICAL_ADDRESS) HobStart; > - MmramRanges[4].PhysicalSize =3D HobStart->EfiFreeMemoryBottom - (EFI_= PHYSICAL_ADDRESS) HobStart; > + MmramRanges[4].PhysicalStart =3D (EFI_PHYSICAL_ADDRESS) (UINTN) HobSta= rt; > + MmramRanges[4].CpuStart =3D (EFI_PHYSICAL_ADDRESS) (UINTN) HobSta= rt; > + MmramRanges[4].PhysicalSize =3D HobStart->EfiFreeMemoryBottom - (EFI_= PHYSICAL_ADDRESS) (UINTN) HobStart; > MmramRanges[4].RegionState =3D EFI_CACHEABLE | EFI_ALLOCATED; > > // Base and size of heap memory shared by all cpus > diff --git a/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/S= tandaloneMmCoreEntryPoint.c b/StandaloneMmPkg/Library/StandaloneMmCoreEntry= Point/AArch64/StandaloneMmCoreEntryPoint.c > index 6c50f470aa..b445d6942e 100644 > --- a/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/Standalo= neMmCoreEntryPoint.c > +++ b/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/Standalo= neMmCoreEntryPoint.c > @@ -328,7 +328,7 @@ _ModuleEntryPoint ( > > // Locate PE/COFF File information for the Standalone MM core module > Status =3D LocateStandaloneMmCorePeCoffData ( > - (EFI_FIRMWARE_VOLUME_HEADER *) PayloadBootInfo->SpImageBase= , > + (EFI_FIRMWARE_VOLUME_HEADER *) (UINTN) PayloadBootInfo->SpI= mageBase, > &TeData, > &TeDataSize > ); IMPORTANT NOTICE: The contents of this email and any attachments are confid= ential and may also be privileged. If you are not the intended recipient, p= lease notify the sender immediately and do not disclose the contents to any= other person, use it for any purpose, or store or copy the information in = any medium. Thank you.