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::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-Google-Smtp-Source: AFSGD/Wt1fiNdUX7654s/n9FvVw/rqHPCm70Fa0O70eTKHkE82SdgHILUO3n1OY2QzIvu4nyJZQHPA== 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 Cc: Ard Biesheuvel , Laszlo Ersek , Leif Lindholm , Eric Auger , Andrew Jones , Philippe Mathieu-Daude , Julien Grall 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: [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: , X-List-Received-Date: Wed, 28 Nov 2018 14:34:07 -0000 Content-Transfer-Encoding: 8bit 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(-) 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); -} - -- 2.19.1