From patchwork Thu Nov 22 17:26:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 151803 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1018571ljp; Thu, 22 Nov 2018 09:26:53 -0800 (PST) X-Google-Smtp-Source: AFSGD/XA+EbU4JkasYy5jaokRnL0p5z9jvaKili34KQRBXT1WlKKVlmLtuO+ikPU3Hmd1aN6pPcc X-Received: by 2002:a63:8d44:: with SMTP id z65mr10981554pgd.57.1542907613311; Thu, 22 Nov 2018 09:26:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542907613; cv=none; d=google.com; s=arc-20160816; b=sbG+4rJQDqqdNkK2fEmVOgDkncl1SMYKl+kE49EqRBch5nbrPse/Nw0gAY2NCmS+y5 RGnfkUgw2eGE+t/kqe/1G2J/43Pm1HuSWSDnZp3h8VlEgAlHfWYh3HHa2Nf+4k4VsiJb iOnlVfEzJgc+rHBoEemSQYKiBrnHiFr0udEGymgRRori9X22As/CC0PkaQeyW52duyai W7puVY1R56LB4Lv5+uyqRlyeNCLkrCv0Yx/dPIsvNy/0Ppd45ZL4Zcjk+iux+sUzDdIE eHdyfdlbFw8yUBxfNlYpKt8lnkTRfQT/Jk4cI1BFNmfkO2orkIZ1mysvynlXooBuBj/1 r8Gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to; bh=Du3dCKmSfVl9fvkHZZ8ffZDS1rS1yeKX+31K6Y9Zjz4=; b=EZJ2zhK5l4ysZC3TLjRzqSktU06uSOASqdfCi7oqpM33ieuYU3H6v2iB/GNzTtxt4Z +GOlhBVHY8kOZKxllZkfiK8rxSOsqRUHyMynyuANb5vEmI2y6k16hS43Aatqg2/dYRb2 KFcacl6v08eqJa7B+Qff4NHgsYa9rMfCUMnR0fS4peXgSI18m7v3CfGHATZamHU1hwbz 2Mv/DfcOW4MiEa8EVJj83PmpvTtM3oecxRjVcflIf1myJxGADuboqVME8EzCs8d31/jZ TUtye95Q6oFC+yA/0lsX59Bz3f+TdrAW1novLt+AwqB8ypJToLo9orejOhKoRGtyxUyL FpVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=YAvU9zxm; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id a12si23080458pll.112.2018.11.22.09.26.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Nov 2018 09:26:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=YAvU9zxm; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id EACEC21194867; Thu, 22 Nov 2018 09:26:51 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:4864:20::342; helo=mail-wm1-x342.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 41F542118FF2F for ; Thu, 22 Nov 2018 09:26:50 -0800 (PST) Received: by mail-wm1-x342.google.com with SMTP id u13-v6so9861652wmc.4 for ; Thu, 22 Nov 2018 09:26:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=5CgofYLQ45W81aufBpc0Ho3EJkulbdCA5T+NwgkNzDE=; b=YAvU9zxmKU+9p7h3PIDpNFxSIA6w1jASPNg8ipBRcCe3e0WhYmCsbj7NLk/+rHCsSO ERH7XFVNfAtuiO+TXGA4D0D6bE0te8bdrpTT2yH/+WB1OYydG6N/Ew21A6eN3WUy3mB7 zAKj+0HSiawoSwfx51lGb72Y6Rz4CWofm9dHU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=5CgofYLQ45W81aufBpc0Ho3EJkulbdCA5T+NwgkNzDE=; b=f3PnOBho2Z7G2ut+lBwVQzZmPjLB3HQk3TTmE+mmIqCXvjlz8j8OpjFYAUaiCFHDvJ YHXJMuogZCKxVnA3smX/8km5Yhmrf7j/ih/6pW7iA1rhpA6jsUYtmwPmGzPxm2WPLzrk 6O54NmwizM2rjzJJAOCNI2WjwSb672vkxHhlK6ozF7gc3yQo1tpOxnjLpbeymzuI42mD eVlX/D2jhcfyA4MNynghsoQ8UUcFOuIrmwWqyxVGxCFhjQVqZRO8phFBi36bwSL4Tadu iLwLaPgurAyrPbh6WTZXMLYLtRE7XViJppGvJoDBaLn8/Vg9HmitOx56+4t3kJTSI9GN i/SQ== X-Gm-Message-State: AGRZ1gKnNPUb9J+1OFHKZTeLdvCjkm6pDQT3w98FR10llx1Ka/7ElEzk wHeFnTxbsuFCHgysadug74mUHoJHjOy35A== X-Received: by 2002:a1c:c545:: with SMTP id v66mr10121955wmf.132.1542907608286; Thu, 22 Nov 2018 09:26:48 -0800 (PST) Received: from mba13.wifi.ns.nl ([2a01:cb1d:112:6f00:6422:2edf:11bf:f2b]) by smtp.gmail.com with ESMTPSA id v1sm8874985wrw.90.2018.11.22.09.26.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Nov 2018 09:26:47 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Thu, 22 Nov 2018 18:26:41 +0100 Message-Id: <20181122172645.20819-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.1 Subject: [edk2] [PATCH edk2-platforms 0/4] Platform/ARM: fix DevicePath mishandling in BdsLib X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: lersek@redhat.com, nariman.poushin@linaro.org MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" The deprecated BdsLib library class in ArmPkg is still depended upon, but only a single implementation exists, which now resides in edk2-platforms. This implementation has some issues in how it deals with Device Paths, so let's fix those, but first move over the library interface declaration. This will permit dropping it from ArmPkg in EDK2. Ard Biesheuvel (4): Platform/ARM: import ARM platform specific BdsLib header Platform/ARM/BdsLid: drop unused BdsStartEfiApplication () Platform/ARM/BdsLib: don't clobber BdsLoadImage() DevicePath IN param Platform/ARM/BdsLib: maintain alignment for DevicePaths Platform/ARM/ARM.dec | 3 + .../Drivers/FdtPlatformDxe/FdtPlatformDxe.inf | 2 +- Platform/ARM/Include/Library/BdsLib.h | 193 ++++++++++++++++++ Platform/ARM/Library/BdsLib/BdsFilePath.c | 71 ++----- Platform/ARM/Library/BdsLib/BdsInternal.h | 1 - Platform/ARM/Library/BdsLib/BdsLib.inf | 2 +- 6 files changed, 212 insertions(+), 60 deletions(-) create mode 100644 Platform/ARM/Include/Library/BdsLib.h -- 2.17.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel