From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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-Google-Smtp-Source: AJdET5cgqyXedThJeVCCARVCxPfdlm+wG1Eai/E6BV+LV4kafvWM03UE1tA3nse8V0M/ALHwnuTg9A== 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 Cc: leif.lindholm@linaro.org, thomas.abraham@arm.com, nariman.poushin@linaro.org, lersek@redhat.com, philmd@redhat.com, Ard Biesheuvel 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: [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: , X-List-Received-Date: Thu, 22 Nov 2018 17:26:50 -0000 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