From patchwork Wed Mar 20 08:08:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Huang X-Patchwork-Id: 160641 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp519074jad; Wed, 20 Mar 2019 01:09:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqyXWPD7G0qFqxsQ01ZgK9K+SzsXC+tem9FAYuvx0g6h7zRLhDim5BzRoq8i3GDqul1aKf2Y X-Received: by 2002:a17:902:2888:: with SMTP id f8mr30407093plb.244.1553069377829; Wed, 20 Mar 2019 01:09:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553069377; cv=none; d=google.com; s=arc-20160816; b=IciLP3BbRtf1QdXGgzu2ZFqE8zZ9h9GYYMKFyE6pmDEJDsIjOMzQCdyma1nCp9JPMf of7dIT8RPOb7BdhZCnNpn+qtYdnZk4Rbz6iXVjnq4JBUC58p3uSqF1BWRzwviFQZ3g0A zt+Nawk+eehQ4cKKV0LyGdXAHyjP5su8Aw69wVuwQpV9IDXhZKVX5+xvHTx3pVC6fUOc lva0/hSuPZxTEwR5geG1PzA40h9Ww1u3o9Ij332SFCsBOaTD6lTgUY22MecEEiZdAeeq SrKpYocoaoJlGlTIVaenqGMvyLAtMrXD9UGCdt9ZrBp4t6oGLGzQQF2tenmwPEiUxGfz 6+Fw== 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:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to; bh=t6/aR3IgCz6eJFRAtYZ83aHSSLB6oCflul341M0PESo=; b=HO1ku9jciYkIIHS7G3+Kg4fsGB75rzHDNWVG0TaXFDAVfTVXoKOvAx1R2na6BmYcTK pbDTXpQHj/ouAOysuxHifEgbnrPcJH1FYb71Ing5XGh0usdK4tnm64EKdeuGbsrwHUIP kyzJAUih40vJBpCMNnHW1A3z+wAaPnSQ5MDkDv9EhOIbrY8eM2XUwYdCwfkOuTkw4us7 MgjfxSr1r3FE6Vx6EjgG1OslneIhhhKpXeY8DfFREsJgo0k3vg3Csww/IDdhq0EjWv1q 7BsM22ZKO/LFSDF8Dq0vpVsf/UF4UJeFowcZCRA+EmR4y6F4IRENFj66owfLhYp3luh/ ghCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=QLcfagBU; 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 z3si1107137pfa.121.2019.03.20.01.09.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Mar 2019 01:09:37 -0700 (PDT) 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=QLcfagBU; 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 73CD4211E0927; Wed, 20 Mar 2019 01:09:37 -0700 (PDT) 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=2607:f8b0:4864:20::442; helo=mail-pf1-x442.google.com; envelope-from=ming.huang@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) (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 EE25A211E0105 for ; Wed, 20 Mar 2019 01:09:35 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id c8so1337339pfd.10 for ; Wed, 20 Mar 2019 01:09:35 -0700 (PDT) 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; bh=huPM1xyQBvgR2zj7FjA1NIoSieT8pmpwv40RhIgLmYo=; b=QLcfagBUE0tANrftAvuhVRN19DyC+XdAYc06UcnwoSV2D1kFxHYNBa1LpIKjaWfXKd GjeB5FH1lZkfGf3jR2goTU69jS+CyjQpVaG7a3Lf6Nm8ViqQ/3ZTGa9UDc00f1FDLiv4 TxgzY86gzOadK10L0x1QzxLt1TK1Kf2OLLibCHLq8iGagh9CCuJFHmT2L9NMUjf3fkQt +SUMaj8AeuSt344plXbsuklsCD3XCJUHKlXBZXfQQ0HRMfVQEqRH484sJmt62U4e99pL /fff8oanb7XMZQEkEty67COIGyIk/4WvV6Xz/+LVLHfFxL2EFeIUeHAEChiAV1+5mvD6 wVhQ== 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; bh=huPM1xyQBvgR2zj7FjA1NIoSieT8pmpwv40RhIgLmYo=; b=NMIJ/2m75mqyU1dSeq3LLusU8doHDeS9cB+JfQvYM5OnPQaweFnoAUyYWhbGQMkEcg +dHrtRQKzW1eFxMiS8o+GOhwIq41Auco2aKgWZoz3KeUJKpNh7sVJC33VYyFawPFGa3t kDqF0uCfRVJMVWTyolkEfa1Wc006jJoYYVPYdTfjSgMkN/RugUYNkW3VPaW81WSvjo+r OBOu1XvDkhxJ4a8l0o1e+MGOaTJ7Uj3l1/BpREUGB1SGeJNVVTh8E/TP1MdeoFSFUNws xOpChdSYVGXTxBH4d+lGecTdzvqduTjBbFsB/lRM7qcvGwab6smPiQJyxd7THT6dsdqy bMxg== X-Gm-Message-State: APjAAAVX47S27pxLKBOeYEGFTIgVwiq/wQFmEozsuQ8ZrF+K21TwY8Dh DhDcGby7t5V7sMamm5uVq8gBbA== X-Received: by 2002:a62:4214:: with SMTP id p20mr6516563pfa.204.1553069375622; Wed, 20 Mar 2019 01:09:35 -0700 (PDT) Received: from localhost.localdomain ([203.160.91.226]) by smtp.gmail.com with ESMTPSA id f9sm1602796pfd.10.2019.03.20.01.09.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 20 Mar 2019 01:09:35 -0700 (PDT) From: Ming Huang To: leif.lindholm@linaro.org, linaro-uefi@lists.linaro.org, edk2-devel@lists.01.org, graeme.gregory@linaro.org Date: Wed, 20 Mar 2019 16:08:20 +0800 Message-Id: <20190320080829.52003-10-ming.huang@linaro.org> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20190320080829.52003-1-ming.huang@linaro.org> References: <20190320080829.52003-1-ming.huang@linaro.org> Subject: [edk2] [PATCH edk2-platforms v3 09/18] Hisilicon/D0x: Rename StartupAp() function 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: huangming23@huawei.com, john.garry@huawei.com, xiaojun2@hisilicon.com, zhangjinsong2@huawei.com, huangdaode@hisilicon.com, zhangfeng56@huawei.com, michael.d.kinney@intel.com, lersek@redhat.com, wanghuiqiang@huawei.com MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" As suggestion of community, 'AP' is a bit unfortunate to use in EDK2 context. PI specifies 'BSP' for Boot-strap Processor, as the one executing all of the EDK2 code. It then uses 'AP' to refer to Additional Processors, which can be assigned tasks using the EFI_MP_SERVICES_PROTOCOL. In a TianoCore context, this should be 'BSP'. So, Rename StartupAp() to StartUpBSP. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ming Huang Reviewed-by: Leif Lindholm --- Platform/Hisilicon/D03/EarlyConfigPeim/EarlyConfigPeimD03.c | 2 +- Platform/Hisilicon/D03/Library/OemMiscLib2P/OemMiscLib2PHi1610.c | 2 +- Platform/Hisilicon/D05/EarlyConfigPeim/EarlyConfigPeimD05.c | 2 +- Platform/Hisilicon/D05/Library/OemMiscLibD05/OemMiscLibD05.c | 3 ++- Platform/Hisilicon/D06/EarlyConfigPeim/EarlyConfigPeimD06.c | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-) -- 2.9.5 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/Platform/Hisilicon/D03/EarlyConfigPeim/EarlyConfigPeimD03.c b/Platform/Hisilicon/D03/EarlyConfigPeim/EarlyConfigPeimD03.c index 97cf6b8d8757..dacd9e871faf 100644 --- a/Platform/Hisilicon/D03/EarlyConfigPeim/EarlyConfigPeimD03.c +++ b/Platform/Hisilicon/D03/EarlyConfigPeim/EarlyConfigPeimD03.c @@ -83,7 +83,7 @@ void QResetAp(VOID) //SCCL A if (!PcdGet64 (PcdTrustedFirmwareEnable)) { - StartupAp(); + StartUpBSP (); } } diff --git a/Platform/Hisilicon/D03/Library/OemMiscLib2P/OemMiscLib2PHi1610.c b/Platform/Hisilicon/D03/Library/OemMiscLib2P/OemMiscLib2PHi1610.c index b57fdfa68e45..c8a9da73bbca 100644 --- a/Platform/Hisilicon/D03/Library/OemMiscLib2P/OemMiscLib2PHi1610.c +++ b/Platform/Hisilicon/D03/Library/OemMiscLib2P/OemMiscLib2PHi1610.c @@ -133,7 +133,7 @@ VOID CoreSelectBoot(VOID) { if (!PcdGet64 (PcdTrustedFirmwareEnable)) { - StartupAp (); + StartUpBSP (); } return; diff --git a/Platform/Hisilicon/D05/EarlyConfigPeim/EarlyConfigPeimD05.c b/Platform/Hisilicon/D05/EarlyConfigPeim/EarlyConfigPeimD05.c index 76a055cbe980..b374347e5c4d 100644 --- a/Platform/Hisilicon/D05/EarlyConfigPeim/EarlyConfigPeimD05.c +++ b/Platform/Hisilicon/D05/EarlyConfigPeim/EarlyConfigPeimD05.c @@ -35,7 +35,7 @@ QResetAp ( (VOID)WriteBackInvalidateDataCacheRange((VOID *) FixedPcdGet64(PcdMailBoxAddress), 8); if (!PcdGet64 (PcdTrustedFirmwareEnable)) { - StartupAp(); + StartUpBSP (); } } diff --git a/Platform/Hisilicon/D05/Library/OemMiscLibD05/OemMiscLibD05.c b/Platform/Hisilicon/D05/Library/OemMiscLibD05/OemMiscLibD05.c index 4c4c944dbead..a1458da7f0a3 100644 --- a/Platform/Hisilicon/D05/Library/OemMiscLibD05/OemMiscLibD05.c +++ b/Platform/Hisilicon/D05/Library/OemMiscLibD05/OemMiscLibD05.c @@ -96,7 +96,7 @@ UINTN OemGetDimmSlot(UINTN Socket, UINTN Channel) VOID CoreSelectBoot(VOID) { if (!PcdGet64 (PcdTrustedFirmwareEnable)) { - StartupAp (); + StartUpBSP (); } return; @@ -128,3 +128,4 @@ BOOLEAN OemIsNeedDisableExpanderBuffer(VOID) { return TRUE; } + diff --git a/Platform/Hisilicon/D06/EarlyConfigPeim/EarlyConfigPeimD06.c b/Platform/Hisilicon/D06/EarlyConfigPeim/EarlyConfigPeimD06.c index 0790f7941ae7..a8261d370626 100644 --- a/Platform/Hisilicon/D06/EarlyConfigPeim/EarlyConfigPeimD06.c +++ b/Platform/Hisilicon/D06/EarlyConfigPeim/EarlyConfigPeimD06.c @@ -78,7 +78,7 @@ QResetAp ( //SCCL A if (!PcdGet64 (PcdTrustedFirmwareEnable)) { - StartupAp (); + StartUpBSP (); } }