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 3B89E7803CE for ; Tue, 19 Mar 2024 19:12:09 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=YN7Mza4OfrMy1j6ruhaTphSpJNX28v+j81SQKu7hbYU=; 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=1710875528; v=1; b=gMC/Dhw2HFuvMLXjGd/ondW87ss4iCc70+VFf0oivoRAO9a37dK5ttyYfiQHlC5ZSxheNA/d B+ATErG6jgE9QfLotq2Yj7vONb0saxxV46kV1eXyM5mq8YWyJfp1L79Ftd0O2rBvN2uN+5clLCI 3HdEuE56TezCcPTSTuGKXhuDSh1r9myBRAx3t5pD/dVdHtxwdoFdCyP3QdX3HK99zmaeYlrLZIH OzPX4TkEq2GKBtK09sqd/WWJdPxLPYG3es9LNTyIyVD3v9uLPvtomEWkbD8N56J6idUnyjQxt6V 6WCdylG97Zb8ch1elTRM1zldMj8IYLeUH3CaDXsIOe6kA== X-Received: by 127.0.0.2 with SMTP id uuP5YY7687511xpEW5gJIvKy; Tue, 19 Mar 2024 12:12:08 -0700 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web10.24813.1710875528010310274 for ; Tue, 19 Mar 2024 12:12:08 -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 9A8BD153B; Tue, 19 Mar 2024 12:12:42 -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 965AF3F762; Tue, 19 Mar 2024 12:12:07 -0700 (PDT) From: "Sam Kaynor" To: devel@edk2.groups.io Cc: Stuart.Yoder@arm.com, Sam Kaynor , Ray Ni , Zhichao Gao Subject: [edk2-devel] [PATCH v2 2/3] ShellPkg: UefiShellDebug1CommandsLib: Image Execution Table in Dmem.c Date: Tue, 19 Mar 2024 14:11:03 -0500 Message-Id: <20240319191104.2368822-3-Sam.Kaynor@arm.com> In-Reply-To: <20240319191104.2368822-1-Sam.Kaynor@arm.com> References: <20240319191104.2368822-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: Tue, 19 Mar 2024 12:12:08 -0700 Reply-To: devel@edk2.groups.io,sam.kaynor@arm.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: ojvE1ihzAVawWo0a7T1NE1eAx7686176AA= 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="gMC/Dhw2"; 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 Y2hhby5nYW9AaW50ZWwuY29tPgpTaWduZWQtb2ZmLWJ5OiBTYW0gS2F5bm9yIDxTYW0uS2F5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VIxNiAgICAgICAgICAqKkJhc2VOYW1lDQorICApDQorew0KKyAgVUlOVDMy ICAgICAgICAgICAgICBTdHJMZW47DQorICBDSEFSMTYgICAgICAgICAgICAgICpTdHJUYWlsOw0K Kw0KKyAgU3RyTGVuID0gU3RyU2l6ZShGaWxlTmFtZSk7DQorDQorICBmb3IgKFN0clRhaWwgPSBG aWxlTmFtZSArIFN0ckxlbiAtIDE7IFN0clRhaWwgIT0gRmlsZU5hbWUgJiYgKlN0clRhaWwgIT0g TCdcXCc7IFN0clRhaWwtLSkgew0KKyAgfQ0KKw0KKyAgaWYgKFN0clRhaWwgPT0gRmlsZU5hbWUp IHsNCisgICAgcmV0dXJuIEVGSV9OT1RfRk9VTkQ7DQorICB9DQorICAqQmFzZU5hbWUgPSBTdHJU YWlsKzE7DQorDQorICByZXR1cm4gRUZJX1NVQ0NFU1M7DQorfQ0KKw0KKy8qKg0KKyAgUmV0cmll dmUgdGhlIEltYWdlRXhlY3V0aW9uVGFibGUgZW50cmllcw0KKw0KKyAgQHBhcmFtW2luXSBBZGRy ZXNzICAgIFRoZSBwb2ludGVyIHRvIHRoZSBJbWFnZUV4ZWN1dGlvblRhYmxlLg0KKyoqLw0KK0VG SV9TVEFUVVMNCitHZXRJbWFnZUV4ZWN1dGlvbkluZm8gKA0KKyAgSU4gVUlOVDY0IEFkZHJlc3MN CisgICkNCit7DQorICBFRklfU1RBVFVTIFN0YXR1czsNCisgIEVGSV9JTUFHRV9FWEVDVVRJT05f SU5GT19UQUJMRSAqRXhlY0luZm9UYWJsZVB0cjsNCisgIEVGSV9JTUFHRV9FWEVDVVRJT05fSU5G TyAgICAgICAqSW5mb1B0cjsNCisgIFZPSUQgICAgICAgICAgICAgICAgICAgICAgICAgICAqcHRy Ow0KKyAgQ0hBUjE2ICAgICAgICAgICAgICAgICAgICAgICAgICpJbWFnZVBhdGg7DQorICBDSEFS MTYgICAgICAgICAgICAgICAgICAgICAgICAgKkltYWdlTmFtZTsNCisgIFVJTlROICA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IHsNCmRpZmYgLS1naXQgYS9TaGVsbFBrZy9MaWJyYXJ5L1VlZmlTaGVs bERlYnVnMUNvbW1hbmRzTGliL1VlZmlTaGVsbERlYnVnMUNvbW1hbmRzTGliLnVuaSBiL1NoZWxs UGtnL0xpYnJhcnkvVWVmaVNoZWxsRGVidWcxQ29tbWFuZHNMaWIvVWVmaVNoZWxsRGVidWcxQ29t bWFuZHNMaWIudW5pCmluZGV4IDI5OWIwYmE0NGYzMS4uZWVlOTM4NGUzZmZiIDEwMDY0NAotLS0g YS9TaGVsbFBrZy9MaWJyYXJ5L1VlZmlTaGVsbERlYnVnMUNvbW1hbmRzTGliL1VlZmlTaGVsbERl YnVnMUNvbW1hbmRzTGliLnVuaQorKysgYi9TaGVsbFBrZy9MaWJyYXJ5L1VlZmlTaGVsbERlYnVn MUNvbW1hbmRzTGliL1VlZmlTaGVsbERlYnVnMUNvbW1hbmRzTGliLnVuaQpAQCAtMTQ0LDYgKzE0 NCw5IEBACiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICIgIFVQREFURV9DQVBTVUxFICAgICAgICAgICAgICAgICAgICVkXHJcbiINCiAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICIgIFFVRVJZX0NBUFNVTEVf Q0FQQUJJTElUSUVTICAgICAgICVkXHJcbiINCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICIgIFFVRVJZX1ZBUklBQkxFX0lORk8gICAgICAgICAgICAg ICVkXHJcbiINCisjc3RyaW5nIFNUUl9ETUVNX0lNR19FWEVfVEFCTEUgICAgI2xhbmd1YWdlIGVu LVVTICJcclxuSW1hZ2UgRXhlY3V0aW9uIFRhYmxlXHJcbiINCisgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICItLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tXHJcbiINCisjc3RyaW5nIFNUUl9ETUVNX0lNR19FWEVfRU5UUlkgICAg I2xhbmd1YWdlIGVuLVVTICIlczogJXNcclxuIg0KICNzdHJpbmcgU1RSX0RNRU1fRVJSX05PVF9G T1VORCAgICAjbGFuZ3VhZ2UgZW4tVVMgIlxyXG4lSCVzJU46IFRhYmxlIGFkZHJlc3Mgbm90IGZv dW5kLlxyXG4iDQogI3N0cmluZyBTVFJfRE1FTV9FUlJfR0VUX0ZBSUwgICAgICNsYW5ndWFnZSBl bi1VUyAiXHJcbiVIJXMlTjogVW5hYmxlIHRvIGdldCB0YWJsZSBpbmZvcm1hdGlvbi5cclxuIg0K IA0KLS0gCjIuMzQuMQoK -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#116906): https://edk2.groups.io/g/devel/message/116906 Mute This Topic: https://groups.io/mt/105030770/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-