From patchwork Thu Nov 30 15:24:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 120209 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp809514qgn; Thu, 30 Nov 2017 07:25:10 -0800 (PST) X-Google-Smtp-Source: AGs4zMaFleAeCtk4ByG0klcr7cwBs3c5mCzQDOTs8FCZTa6Qo5zWDf6wz+au0W/EluJvBRZlROv4 X-Received: by 10.84.218.143 with SMTP id r15mr2954163pli.53.1512055510018; Thu, 30 Nov 2017 07:25:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512055510; cv=none; d=google.com; s=arc-20160816; b=mQHefOQYfbA5753aleCKOjLSeXx0BXuCnea0ZVGkwOWBt/2I6yguYAKGF5TZNr3Elo iw/gmFeaVC6JK8imRxMnfJh2nwpbv/GYoiK3P+sgR5b812Kjb6XS3RdQg8GBKp0tr3q9 fOf5vbjAWZSS0dxnEf2kEdMFEbsn7jycHgy2Euy7YmL78G7DyQZjsumsWvYajPTaZ1Cr 4s95hCfQn6+wCqB6ZklqIMootO2aUjtcyLiFrTPTnAUHnC5VZ/0E65fAceZ2QNNAFn6Y kWtM80jKyYDMBSNzQgG/THoXtP4GblVXQGoKU9a9jYQd95E4M8NsQUVgSiEcWNYkGb0I a+4Q== 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:arc-authentication-results; bh=go152rIibn1ECZwnlvZmTklyOueJblpJ3MQvk4soqUQ=; b=EowUcHmm+Fj0rNM+DyNUnQL2KiigFuJ8Zw3/VzpTgAg3v1KP/gjOZ316uSLxPcwEyN qXFE0OUWBX+w8tn68CdpRjRSoYXaM+ZTxkol/SRHk3IY/+7ai//bOZO1O4XuGONuJ4s0 4kMg745F8I9zWpveHv6oQPYBgggKb8TEKfcO0L06elTe7B67Z3saGevktv+a3rdpiiyw MbnTiWAKmBXkd7pwdVAYH13wS5P4RPWFOlLcxscldgbz1i9E6jy75Q9XEhQWz+ZqVy17 hnzzOIKfOVSz0A9ZVFKR4gL2sGGk4UssqqgfLhyqowslbv2Bb8LdXkdg23BN+0hkp5wK 3AMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=EWfaiRxo; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 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. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id 88si3279979plc.803.2017.11.30.07.25.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Nov 2017 07:25:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=EWfaiRxo; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 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 AB2E3220F3C2C; Thu, 30 Nov 2017 07:20:43 -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:400c:c09::243; helo=mail-wm0-x243.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wm0-x243.google.com (mail-wm0-x243.google.com [IPv6:2a00:1450:400c:c09::243]) (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 B2A83220C1C3A for ; Thu, 30 Nov 2017 07:20:42 -0800 (PST) Received: by mail-wm0-x243.google.com with SMTP id b76so13171393wmg.1 for ; Thu, 30 Nov 2017 07:25:07 -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=d4tS9ikGv2Vh9Mi6c8oADQLGus16TKuhPsZqp/UOGC4=; b=EWfaiRxo18E+Kq/ZASsiVSrD4lAcylfaABXbKr2uDcM0wsQmW5lwTFUZZkVz2k2q0v rx+4xxPdFUoTT50+AvApPQKEJs7T3O09vO/TLC4z6BaxfuX6OKMtMJ143VhLxYcnaOVh 96A2/et4pVHzAOu8kbG5tTv7XYHA0mbt8QSfs= 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=d4tS9ikGv2Vh9Mi6c8oADQLGus16TKuhPsZqp/UOGC4=; b=UveLlckxL0hZHbf29S9n1ISPE2l2gtPMgb4KBrZdCbN4agquNrsSOqHcJbl2POx+I6 IsMN+QzwrFqwyltD4XZJ9Ey+LaAnyXBI1/w6HE8V8jdOPxbuzwm2kP5W0rOCb0Yy5pIs bxOQoSLfH7xGB91zmGuzeaHdDk3H/GMnf9oxVWt98s/uj4GmAHhvprhOgkDiqBAKMrhi 2s0pw1dxCbGK07CpBNbzUaX49BDzSUSqWqLu4d2up0DPvX93KiM5Db2nge81iJhOMTFr BHXiDMNvHnKI6a1DdQv22KROOrBdeubCwKkYn+5xrg/dXqy1nR26YyaSw5IYGcbE5x5a 4SvQ== X-Gm-Message-State: AJaThX4gzGfh/iiwVsLr2w9wEeVuUEw0X/RXlYiL8mY59WdyTxVhCS4D RoUN5CAGTkHX35hb5oUalcRagyUpoWg= X-Received: by 10.28.173.213 with SMTP id w204mr945030wme.126.1512055506274; Thu, 30 Nov 2017 07:25:06 -0800 (PST) Received: from localhost.localdomain ([105.150.171.234]) by smtp.gmail.com with ESMTPSA id 43sm2566328wru.81.2017.11.30.07.25.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Nov 2017 07:25:05 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Thu, 30 Nov 2017 15:24:46 +0000 Message-Id: <20171130152453.19205-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.11.0 Subject: [edk2] [PATCH 0/7] ArmPlatformPkg/PrePi: stop exposing internal code via HOBs X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: leif.lindholm@linaro.org, Ard Biesheuvel MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" This removes the code from PrePi and MemoryInitPeiLib that keeps the primary FV around forever so that DXE phase code can reuse some of the code inside the PrePi module. Cc: Udit Kumar Cc: Meenakshi Aggarwal Cc: Sakar Arora Ard Biesheuvel (6): EmbeddedPkg BeagleBoardPkg: move special HOB reuse libraries into platform BeagleBoardPkg: create private PrePi implementation BeagleBoardPkg: clone MemoryInitPeiLib ArmPlatformPkg/PrePi: don't expose PE/COFF and LZMA libraries via HOBs ArmPlatformPkg/PrePi; call all constructors by hand ArmPlatformPkg/PrePi: remove bogus IntelFrameworkModulePkg reference Meenakshi Aggarwal (1): ArmPlatformPkg/MemoryInitPeiLib: don't reserve primary FV in memory ArmPlatformPkg/MemoryInitPei/MemoryInitPeiLib.c | 69 ------- ArmPlatformPkg/PrePi/PeiMPCore.inf | 2 - ArmPlatformPkg/PrePi/PeiUniCore.inf | 2 - ArmPlatformPkg/PrePi/PrePi.c | 24 +-- BeagleBoardPkg/BeagleBoardPkg.dsc | 14 +- BeagleBoardPkg/BeagleBoardPkg.fdf | 2 +- {EmbeddedPkg => BeagleBoardPkg}/Library/DxeHobPeCoffLib/DxeHobPeCoff.c | 0 {EmbeddedPkg => BeagleBoardPkg}/Library/DxeHobPeCoffLib/DxeHobPeCoffLib.inf | 0 {EmbeddedPkg => BeagleBoardPkg}/Library/LzmaHobCustomDecompressLib/LzmaHobCustomDecompressLib.c | 0 {EmbeddedPkg => BeagleBoardPkg}/Library/LzmaHobCustomDecompressLib/LzmaHobCustomDecompressLib.inf | 0 BeagleBoardPkg/Library/MemoryInitPeiLib/MemoryInitPeiLib.c | 198 ++++++++++++++++++++ BeagleBoardPkg/Library/MemoryInitPeiLib/MemoryInitPeiLib.inf | 64 +++++++ BeagleBoardPkg/PrePi/Arm/ArchPrePi.c | 29 +++ BeagleBoardPkg/PrePi/Arm/ModuleEntryPoint.S | 130 +++++++++++++ BeagleBoardPkg/PrePi/Arm/ModuleEntryPoint.asm | 148 +++++++++++++++ {ArmPlatformPkg => BeagleBoardPkg}/PrePi/LzmaDecompress.h | 0 BeagleBoardPkg/PrePi/MainUniCore.c | 39 ++++ BeagleBoardPkg/PrePi/PeiUniCore.inf | 104 ++++++++++ BeagleBoardPkg/PrePi/PrePi.c | 198 ++++++++++++++++++++ BeagleBoardPkg/PrePi/PrePi.h | 90 +++++++++ EmbeddedPkg/EmbeddedPkg.dsc | 2 - 21 files changed, 1012 insertions(+), 103 deletions(-) rename {EmbeddedPkg => BeagleBoardPkg}/Library/DxeHobPeCoffLib/DxeHobPeCoff.c (100%) rename {EmbeddedPkg => BeagleBoardPkg}/Library/DxeHobPeCoffLib/DxeHobPeCoffLib.inf (100%) rename {EmbeddedPkg => BeagleBoardPkg}/Library/LzmaHobCustomDecompressLib/LzmaHobCustomDecompressLib.c (100%) rename {EmbeddedPkg => BeagleBoardPkg}/Library/LzmaHobCustomDecompressLib/LzmaHobCustomDecompressLib.inf (100%) create mode 100644 BeagleBoardPkg/Library/MemoryInitPeiLib/MemoryInitPeiLib.c create mode 100644 BeagleBoardPkg/Library/MemoryInitPeiLib/MemoryInitPeiLib.inf create mode 100644 BeagleBoardPkg/PrePi/Arm/ArchPrePi.c create mode 100644 BeagleBoardPkg/PrePi/Arm/ModuleEntryPoint.S create mode 100644 BeagleBoardPkg/PrePi/Arm/ModuleEntryPoint.asm rename {ArmPlatformPkg => BeagleBoardPkg}/PrePi/LzmaDecompress.h (100%) create mode 100644 BeagleBoardPkg/PrePi/MainUniCore.c create mode 100644 BeagleBoardPkg/PrePi/PeiUniCore.inf create mode 100644 BeagleBoardPkg/PrePi/PrePi.c create mode 100644 BeagleBoardPkg/PrePi/PrePi.h -- 2.11.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel