From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id A6DC59418FD for ; Mon, 1 Apr 2024 13:45:34 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=0wwYPg8Y/o+otil/QzzihEHpX2AT3wKJNXjeaupQxM0=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20240206; t=1711979133; v=1; b=xq0J6arMgKDm6a4HXp/u+y9KyX4YcRMM8LiY4lTeFlGoiIP3IM4UvPk0gtGD0VEL5m5DZpBH 0Ch/NkWkSlbYwDSXiC4/Kl9e2Vlxm9spw8QR9w8ihBUmpyIWmTB3Ed7+mr82UIYFTXZygiNPMtj CXRlXKZIzDuOAUQN0lUQuaTqvyBCIL/gV0S1QUAx89Bxt59Q4PVNgFgtfS8OmpYoQF/Mnriq5wU gaS857zPbEZayFJRDVnjS2CgACORSJBCtLs2zFiQnqk5TWtBsAV3TSZrZln6DT7byE6bx4Khdcz R6eXjWgWc8cwZz9EswybiuLcGsugqRXl4m1VrOvOpmPpA== X-Received: by 127.0.0.2 with SMTP id VZhHYY7687511xeAAG1I6Agu; Mon, 01 Apr 2024 06:45:33 -0700 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web10.37868.1711979130749339664 for ; Mon, 01 Apr 2024 06:45:30 -0700 X-Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 94C921516; Mon, 1 Apr 2024 06:46:02 -0700 (PDT) X-Received: from beelzebub.ast.arm.com (u203625-lin.austin.arm.com [10.118.28.39]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 4F84C3F7B4; Mon, 1 Apr 2024 06:45:30 -0700 (PDT) From: "Sam Kaynor" To: devel@edk2.groups.io Cc: Ray Ni , Zhichao Gao Subject: [edk2-devel] [PATCH v3 2/3] ShellPkg: UefiShellDebug1CommandsLib: Image Execution Table in Dmem.c Date: Mon, 1 Apr 2024 08:45:17 -0500 Message-Id: <20240401134518.743481-3-Sam.Kaynor@arm.com> In-Reply-To: <20240401134518.743481-1-Sam.Kaynor@arm.com> References: <20240401134518.743481-1-Sam.Kaynor@arm.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Mon, 01 Apr 2024 06:45:30 -0700 Reply-To: devel@edk2.groups.io,sam.kaynor@arm.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: XPp7bqopaffM164v1QX9r1DRx7686176AA= Content-Transfer-Encoding: base64 X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=xq0J6arM; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=arm.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io UkVGOiBodHRwczovL2J1Z3ppbGxhLnRpYW5vY29yZS5vcmcvc2hvd19idWcuY2dpP2lkPTQzNTIK CkltcGxlbWVudGVkIGR1bXBpbmcgb2YgdGhlIEltYWdlIEV4ZWN1dGlvbiBUYWJsZSB1c2luZyBE bWVtLmMKCkNjOiBSYXkgTmkgPHJheS5uaUBpbnRlbC5jb20+CkNjOiBaaGljaGFvIEdhbyA8emhp Y2hhby5nYW9AaW50ZWwuY29tPgpTaWduZWQtb2ZmLWJ5OiBTYW0gS2F5bm9yIDxTYW0uS2F5bm9y QGFybS5jb20+Ci0tLQoKT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RFU1RFRCI7DQorICAgICAgICBicmVhazsNCisgICAgICBjYXNlIEVGSV9JTUFHRV9F WEVDVVRJT05fQVVUSF9TSUdfRkFJTEVEOg0KKyAgICAgICAgQWN0aW9uVHlwZSA9IEwiQVVUSEVO VElDQVRJT04gU0lHTkFUVVJFIEZBSUxFRCI7DQorICAgICAgICBicmVhazsNCisgICAgICBjYXNl IEVGSV9JTUFHRV9FWEVDVVRJT05fQVVUSF9TSUdfUEFTU0VEOg0KKyAgICAgICAgQWN0aW9uVHlw ZSA9IEwiQVVUSEVOVElDQVRJT04gU0lHTkFUVVJFIFBBU1NFRCI7DQorICAgICAgICBicmVhazsN CisgICAgICBjYXNlIEVGSV9JTUFHRV9FWEVDVVRJT05fQVVUSF9TSUdfTk9UX0ZPVU5EOg0KKyAg ICAgICAgQWN0aW9uVHlwZSA9IEwiQVVUSEVOVElDQVRJT04gU0lHTkFUVVJFIE5PVCBGT1VORCI7 DQorICAgICAgICBicmVhazsNCisgICAgICBjYXNlIEVGSV9JTUFHRV9FWEVDVVRJT05fQVVUSF9T SUdfRk9VTkQ6DQorICAgICAgICBBY3Rpb25UeXBlID0gTCJBVVRIRU5USUNBVElPTiBTSUdOQVRV UkUgRk9VTkQiOw0KKyAgICAgICAgYnJlYWs7DQorICAgICAgY2FzZSBFRklfSU1BR0VfRVhFQ1VU SU9OX1BPTElDWV9GQUlMRUQ6DQorICAgICAgICBBY3Rpb25UeXBlID0gTCJQT0lMQ1kgRkFJTEVE IjsNCisgICAgICAgIGJyZWFrOw0KKyAgICAgIGNhc2UgRUZJX0lNQUdFX0VYRUNVVElPTl9JTklU SUFMSVpFRDoNCisgICAgICAgIEFjdGlvblR5cGUgPSBMIklOSVRJQUxJWkVEIjsNCisgICAgICAg IGJyZWFrOw0KKyAgICAgIGRlZmF1bHQ6DQorICAgICAgICBBY3Rpb25UeXBlID0gTCJpbnZhbGlk IGFjdGlvbiI7DQorICAgIH0NCisNCisgICAgU3RhdHVzID0gU2hlbGxQcmlud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XHJcbiINCiAj c3RyaW5nIFNUUl9ETUVNX0VSUl9OT1RfRk9VTkQgICAgI2xhbmd1YWdlIGVuLVVTICJcclxuJUgl cyVOOiBUYWJsZSBhZGRyZXNzIG5vdCBmb3VuZC5cclxuIg0KICNzdHJpbmcgU1RSX0RNRU1fRVJS X0dFVF9GQUlMICAgICAjbGFuZ3VhZ2UgZW4tVVMgIlxyXG4lSCVzJU46IFVuYWJsZSB0byBnZXQg dGFibGUgaW5mb3JtYXRpb24uXHJcbiINCiANCi0tIAoyLjM0LjEKCg== -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#117290): https://edk2.groups.io/g/devel/message/117290 Mute This Topic: https://groups.io/mt/105264290/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-