From patchwork Wed Nov 28 14:33:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 152273 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1163878ljp; Wed, 28 Nov 2018 06:34:10 -0800 (PST) X-Google-Smtp-Source: AFSGD/UGKJauGbcCyQj0Key/bPc1YeY2Qe8lti5JYC6+R8+Sb40pe0UZt9dGCi4QYasqMeRe1NMQ X-Received: by 2002:a63:504d:: with SMTP id q13mr33787095pgl.319.1543415650219; Wed, 28 Nov 2018 06:34:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543415650; cv=none; d=google.com; s=arc-20160816; b=tdlsJwoMJdiHjzZPfGkh+QTXNAi4ScshjhRV5zN87Dveb2yHX+bJsoM1sUPh12etQ9 u+uYRbFsJ7XBeW67wZxxSCo8yH0O68BNenxYNV/t2UqsBSWTjtdSocSorm1cPvZTHesP ktPQVBYw9xN/HDp2l1dQoDW38ZVCaNqsqgvQo19JA7QfBi37KOM5AQcU0PFekt0J8Q0U kLijhN8W6+YSch5A60Auy8oC1zE4+P+oHkj4c8z/jUz8pD/zMU5XDXIfHr28Dz4G3ahB BKFtA5eHfaGHlb/Dh6tkhVBtdIwzNhm8exuuy/qj+JffW7AYZlvk8UFuYObtsCk+Ox+R JnfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:references:in-reply-to:message-id :date:to:from:dkim-signature:delivered-to; bh=tlN3wCoK7Y1Jn7AyhqeFhBVSynr/qKfswSHrsmPMAmI=; b=f4oHbOgDmHUBXpSm9dENm0YGXaiPkVe9eSnp92nFBmM2awCX1bkWO/udRJBoHHiki1 agdqaZ7wjPhgxhMBxXvOr35A0vX7dUPq61oP4jQ6UnjZwyKq9enOZsK/a3N/KyRFGLwP AU7vnADNZP5bhTP0Ll65BH9ubtNLZnts1B1WwtXGiFVgdjkfDdgiWwz2qjpSk5bUtOUr 6oTq9Q4muRV9WFPA92b9rD0gmnCVBzn+/AXXDFhOIf3Xy+TTdmicLuZdj9rDVSL4S4qv 3bYa7rR4j+G2MYe8sAVApQ4xR0EZNDp2DFROfsM+4ze+bNW7e6OHyV0AscHhLZFnIs5S sd3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=hWPphP12; 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 12-v6si7856126pfu.2.2018.11.28.06.34.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Nov 2018 06:34:10 -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=hWPphP12; 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 8C0C22119620D; Wed, 28 Nov 2018 06:34:09 -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::443; helo=mail-wr1-x443.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) (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 315312119620A for ; Wed, 28 Nov 2018 06:34:07 -0800 (PST) Received: by mail-wr1-x443.google.com with SMTP id t27so18571970wra.6 for ; Wed, 28 Nov 2018 06:34: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:in-reply-to:references :mime-version:content-transfer-encoding; bh=NowxrHN/EFL0hmRgSJvRYKdw6W0LH0SDQatVITrXCaI=; b=hWPphP12/biOPmcZigZI3PMPy4nNGKbhMmaL7/WIYb0ZcmEzJW+Z8oHY0TNJmFmEzg 8xhPveKReJktgY1uMNIgmkAxHhszMZpGGdOZ/hH2uxuYJTg47H2SUih/eTpl9eSPfBlB 4JbLPvaNxoIplmmtLufEDDf9xmCqeZKed5VW0= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=NowxrHN/EFL0hmRgSJvRYKdw6W0LH0SDQatVITrXCaI=; b=a1UqH2M4BWnsaWoThm4bXYUt5EGcpZYqxJAYALsdq8bjs5o7SDkZ3ncVw0BBJjeseA pPiVdrr1IpxWCgFY5D31HrDWj39xYT3Z+rWw4MOT7jBqeOFXJTksJFBJQBpfI28JyT4e 71guDzbl8x/2gmLBQaxcazn2R6CyTuzDMpOLesfMV5whvrxja8FIR9f+4j7PArD1iDnz LSRPyqE/CmgjiljeWDyzVHdR/eMU3tTxkONCD6ni5AaXTN51Cj0ftc5RUthbYEFjz4Du 919EyTFtpQ3DLyjAe399BlkOjLWeifoSaF76hvMugYL/HQ7/uERDgNSlw9vRCmY2Bf3Q XKwQ== X-Gm-Message-State: AA+aEWaI9r0qJ2OcIFWNBB8Ld8oVIt7tB+v87FnNG9ZnDcZL0yG5heEH 9BIz44d5fSxpqf6mj4ak12FT/XtYnWA= X-Received: by 2002:adf:dd06:: with SMTP id a6mr33351216wrm.2.1543415645356; Wed, 28 Nov 2018 06:34:05 -0800 (PST) Received: from harold.home ([2a01:cb1d:112:6f00:296f:238b:c20d:3626]) by smtp.gmail.com with ESMTPSA id 6sm3391891wmk.26.2018.11.28.06.34.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Nov 2018 06:34:04 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Wed, 28 Nov 2018 15:33:42 +0100 Message-Id: <20181128143357.991-2-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181128143357.991-1-ard.biesheuvel@linaro.org> References: <20181128143357.991-1-ard.biesheuvel@linaro.org> MIME-Version: 1.0 Subject: [edk2] [PATCH v3 01/16] EmbeddedPkg/TemplateSec: remove unused module 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: Andrew Jones , Laszlo Ersek Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Remove this module: it is unused, and should not be used as an example going forward. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- EmbeddedPkg/TemplateSec/TemplateSec.inf | 65 ----------------- EmbeddedPkg/TemplateSec/TemplateSec.c | 76 -------------------- 2 files changed, 141 deletions(-) -- 2.19.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Laszlo Ersek Reviewed-by: Leif Lindholm diff --git a/EmbeddedPkg/TemplateSec/TemplateSec.inf b/EmbeddedPkg/TemplateSec/TemplateSec.inf deleted file mode 100644 index 3a63e59294d3..000000000000 --- a/EmbeddedPkg/TemplateSec/TemplateSec.inf +++ /dev/null @@ -1,65 +0,0 @@ -#/** @file -# -# Component description file for DxeIpl module -# -# The responsibility of this module is to load the DXE Core from a Firmware Volume. This implementation i used to load a 32-bit DXE Core. -# -# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.
-# This program and the accompanying materials -# are licensed and made available under the terms and conditions of the BSD License -# which accompanies this distribution. The full text of the license may be found at -# http://opensource.org/licenses/bsd-license.php -# -# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. -# -#**/ - -[Defines] - INF_VERSION = 0x00010005 - BASE_NAME = TemplateSec - FILE_GUID = 1D6F730F-5A55-4078-869B-E0A18324BDC8 - MODULE_TYPE = SEC - VERSION_STRING = 1.0 - - -# -# The following information is for reference only and not required by the build tools. -# -# VALID_ARCHITECTURES = IA32 X64 ARM -# - -[Sources.common] - TemplateSec.c - -[Sources.Ia32] -# Ia32/ResetVector.asm | MSFT -# Ia32/ResetVector.S | GCC - -[Sources.X64] -# X64/ResetVector.asm | MSFT -# X64/ResetVector.S | GCC - -[Sources.ARM] -# Arm/ResetVector.asm | RVCT -# Arm/ResetVector.S | GCC - -[Packages] - MdePkg/MdePkg.dec - MdeModulePkg/MdeModulePkg.dec - EmbeddedPkg/EmbeddedPkg.dec - - -[LibraryClasses] - BaseLib - DebugLib - BaseMemoryLib - UefiDecompressLib - PeCoffLib - CacheMaintenanceLib - PrePiLib - -[Pcd] - gEmbeddedTokenSpaceGuid.PcdEmbeddedFdBaseAddress - gEmbeddedTokenSpaceGuid.PcdEmbeddedFdSize - diff --git a/EmbeddedPkg/TemplateSec/TemplateSec.c b/EmbeddedPkg/TemplateSec/TemplateSec.c deleted file mode 100644 index c63adbb6f90f..000000000000 --- a/EmbeddedPkg/TemplateSec/TemplateSec.c +++ /dev/null @@ -1,76 +0,0 @@ -/** @file - - Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
- - This program and the accompanying materials - are licensed and made available under the terms and conditions of the BSD License - which accompanies this distribution. The full text of the license may be found at - http://opensource.org/licenses/bsd-license.php - - THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, - WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. - -**/ - -#include - -#include -#include -#include - -#include - -VOID -_ModuleEntryPoint ( - VOID - ) -{ -} - -VOID -CEntryPoint ( - VOID *MemoryBase, - UINTN MemorySize, - VOID *StackBase, - UINTN StackSize - ) -{ - EFI_PHYSICAL_ADDRESS MemoryBegin; - UINT64 MemoryLength; - VOID *HobBase; - - // - // Boot strap the C environment so the other library services will work properly. - // - MemoryBegin = (EFI_PHYSICAL_ADDRESS)(UINTN)MemoryBase; - MemoryLength = (UINT64)MemorySize; - HobBase = (VOID *)(UINTN)(FixedPcdGet32(PcdEmbeddedFdBaseAddress) + FixedPcdGet32(PcdEmbeddedFdSize)); - CreateHobList (MemoryBase, MemorySize, HobBase, StackBase); - - MemoryBegin = (EFI_PHYSICAL_ADDRESS)(UINTN)StackBase; - MemoryLength = (UINT64)StackSize; - UpdateStackHob (MemoryBegin, MemoryLength); - - DEBUG ((DEBUG_ERROR, "CEntryPoint (%x,%x,%x,%x)\n", MemoryBase, MemorySize, StackBase, StackSize)); - - // - // Add your C code stuff here.... - // - - - // - // Load the DXE Core and transfer control to it - // - - // Give the DXE Core access to our DEBUG and ASSERT infrastructure so this will work prior - // to the DXE version being loaded. Thus we close the debugging gap between phases. - AddDxeCoreReportStatusCodeCallback (); - - //BuildFvHobs (PcdBfvBase, PcdBfvSize, NULL); - - LoadDxeCoreFromFv (NULL, 0); - - // DXE Core should always load and never return - ASSERT (FALSE); -} -