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 15262941E9F for ; Wed, 24 Jan 2024 20:57:37 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=xYjiWLVeda6W8J90kyI+v3OJyiXAam8UvzAjYh6eXjA=; 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:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1706129856; v=1; b=vGvfypTuGVNiAgyjwfWd6g5rOBdPw6nitMcQlwxSKVxtOKW6VtYQ8hxdIfsNrdT4aDKHTUc+ WIYhmq291DJfO6oFvWNaxjBboC0HkujwbcSEKYK9a1YVlixW79e7VsFO8aAHzEkssxCno1ecC+3 U0TT0W3h0yQRPzqvtShVcoYg= X-Received: by 127.0.0.2 with SMTP id x5jxYY7687511xqi6izlDm8V; Wed, 24 Jan 2024 12:57:36 -0800 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web10.35231.1706129856154771870 for ; Wed, 24 Jan 2024 12:57:36 -0800 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 A954E1FB; Wed, 24 Jan 2024 12:58:20 -0800 (PST) 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 C9FFB3F73F; Wed, 24 Jan 2024 12:57:35 -0800 (PST) From: "Sam Kaynor" To: devel@edk2.groups.io Cc: stuart.yoder@arm.com, Sam Kaynor , Ray Ni , Zhichao Gao Subject: [edk2-devel] [PATCH v1 2/3] ShellPkg: UefiShellDebug1CommandsLib: Image Execution Table in Dmem.c Date: Wed, 24 Jan 2024 14:56:05 -0600 Message-Id: <20240124205605.69439-3-Sam.Kaynor@arm.com> In-Reply-To: <20240124205605.69439-1-Sam.Kaynor@arm.com> References: <20240124205605.69439-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 Reply-To: devel@edk2.groups.io,sam.kaynor@arm.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: zUhS9qWoeKfnn3E2LFnsYFZLx7686176AA= Content-Transfer-Encoding: base64 X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=vGvfypTu; 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+Ci0tLQogU2hlbGxQa2cvTGlicmFyeS9VZWZpU2hlbGxEZWJ1ZzFDb21tYW5kc0xp Yi9EbWVtLmMgICAgICAgICAgICAgICAgICAgICAgICAgfCAxMzkgKysrKysrKysrKysrKysrKysr KysKIFNoZWxsUGtnL0xpYnJhcnkvVWVmaVNoZWxsRGVidWcxQ29tbWFuZHNMaWIvVWVmaVN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tIDE7IFN0clRhaWwgIT0gRmlsZU5hbWUgJiYgKlN0clRhaWwgIT0g TCdcXCc7IFN0clRhaWwtLSkgew0KKyAgfQ0KKw0KKyAgaWYgKFN0clRhaWwgPT0gRmlsZU5hbWUp IHsNCisgICAgcmV0dXJuIEVGSV9OT1RfRk9VTkQ7DQorICB9DQorICAqQmFzZU5hbWUgPSBTdHJU YWlsKzE7DQorDQorICByZXR1cm4gRUZJX1NVQ0NFU1M7DQorfQ0KKw0KKy8qKg0KKyAgUmV0cmll dmUgdGhlIEltYWdlRXhlY3V0aW9uVGFibGUgZW50cmllcw0KKw0KKyAgQHBhcmFtW2luXSBBZGRy ZXNzICAgIFRoZSBwb2ludGVyIHRvIHRoZSBJbWFnZUV4ZWN1dGlvblRhYmxlLg0KKyoqLw0KK0VG SV9TVEFUVVMNCitHZXRJbWFnZUV4ZWN1dGlvbkluZm8gKA0KKyAgSU4gVUlOVDY0IEFkZHJlc3MN CisgICkNCit7DQorICBFRklfU1RBVFVTIFN0YXR1czsNCisgIEVGSV9JTUFHRV9FWEVDVVRJT05f SU5GTyAgICAgICAqSW5mb1B0cjsNCisgIFZPSUQgICAgICAgICAgICAgICAgICAgICAgICAgICAq cHRyOw0KKyAgQ0hBUjE2ICAgICAgICAgICAgICAgICAgICAgICAgICpJbWFnZVBhdGg7DQorICBD SEFSMTYgICAgICAgICAgICAgICAgICAgICAgICAgKkltYWdlTmFtZTsNCisgIFVJTlROICAgICAg ICAgICAgICAgICAgICAgICAgICAqTnVtYmVyT2ZJbWFnZXM7DQorICBDSEFSMTYgICAgICAgICAg ICAgICAgICAgICAgICAgKkFjdGlvblR5cGU7DQorDQorICBTdGF0dXMgPSBFZmlHZXRTeXN0ZW1D b25maWd1cmF0aW9uVGFibGUgKCZnRWZpSW1hZ2VTZWN1cml0eURhdGFiYXNlR3VpZCwgJnB0cik7 DQorDQorICBOdW1iZXJPZkltYWdlcyA9IHB0cjsNCisNCisgIHB0ciArPSBzaXplb2YoTnVtYmV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ZzFDb21tYW5kc0xpYi9VZWZpU2hlbGxEZWJ1ZzFDb21tYW5kc0xpYi51bmkK KysrIGIvU2hlbGxQa2cvTGlicmFyeS9VZWZpU2hlbGxEZWJ1ZzFDb21tYW5kc0xpYi9VZWZpU2hl bGxEZWJ1ZzFDb21tYW5kc0xpYi51bmkKQEAgLTE0NCw2ICsxNDQsOSBAQAogICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiICBVUERBVEVfQ0FQU1VMRSAg ICAgICAgICAgICAgICAgICAlZFxyXG4iDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAiICBRVUVSWV9DQVBTVUxFX0NBUEFCSUxJVElFUyAgICAgICAl ZFxyXG4iDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAiICBRVUVSWV9WQVJJQUJMRV9JTkZPICAgICAgICAgICAgICAlZFxyXG4iDQorI3N0cmluZyBT VFJfRE1FTV9JTUdfRVhFX1RBQkxFICAgICNsYW5ndWFnZSBlbi1VUyAiXHJcbkltYWdlIEV4ZWN1 dGlvbiBUYWJsZVxyXG4iDQorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAiLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLVxyXG4i DQorI3N0cmluZyBTVFJfRE1FTV9JTUdfRVhFX0VOVFJZICAgICNsYW5ndWFnZSBlbi1VUyAiJXM6 ICVzXHJcbiINCiAjc3RyaW5nIFNUUl9ETUVNX0VSUl9OT1RfRk9VTkQgICAgI2xhbmd1YWdlIGVu LVVTICJcclxuJUglcyVOOiBUYWJsZSBhZGRyZXNzIG5vdCBmb3VuZC5cclxuIg0KICNzdHJpbmcg U1RSX0RNRU1fRVJSX0dFVF9GQUlMICAgICAjbGFuZ3VhZ2UgZW4tVVMgIlxyXG4lSCVzJU46IFVu YWJsZSB0byBnZXQgdGFibGUgaW5mb3JtYXRpb24uXHJcbiINCiANCi0tIAoyLjI1LjEKCg== -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#114355): https://edk2.groups.io/g/devel/message/114355 Mute This Topic: https://groups.io/mt/103940859/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-