From patchwork Mon Oct 9 17:00:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcin Wojtas X-Patchwork-Id: 115267 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp2765803qgn; Mon, 9 Oct 2017 09:54:14 -0700 (PDT) X-Received: by 10.99.3.7 with SMTP id 7mr9707229pgd.295.1507568054353; Mon, 09 Oct 2017 09:54:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507568054; cv=none; d=google.com; s=arc-20160816; b=FNtUKce2E0my//XXYawzR17ev5w4f+IR0CfJ0w/JYTfJgOx83O3SKJ4LnwR9noZOdu p6aCKFRMjn9Sx1hta/2bGSpTBgz9yl2KWrM9I1I2Ch1F8h9wEG7DvhpU+C/UWVo7/m9V MvMBG1054xKaX7fWpN8qcWd41H6AlkDYznVMLgGx1M5l89uMXqrVFuLXLQeYF3XpO9Ps a+2OsvhxOiVi/MKQy6NGpxzulF+EXWN9BdA1tpXTMpIIVYhJvEFx/9I5CLkwOuQ6jDAX DWBkcd6Z+GiVWx2cN8YtJqmpz4zWSh25ERmmU6p6jiTW+kGJNWhyXgB8oMBol+FKXH3W R6ww== 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:arc-authentication-results; bh=eIQ5ogkQCI5UfFPQS+sEbdhXjOPPIOdHZbp0qoOPzHs=; b=uF4qqFEzrD/KxHetrS5C4/ypXpI/Qul2kbzONUJMcT3DxS5scAsaG2cRPTNJ16f92B BRlPdS9IaqVx9oGonxCfe8Ax4DaEBYuMNbwO3jy8+qrlCH/UR4CE4Yg99/o5T8dYae/d NuolBehFYRjEoCW5QdlRNCWJaAHZMdYKZaesXKWQIzFEL4o0pNH5o0Dxi+eBwUaIzM+q Nr7RataUJ5i220OqV+UVJW97UxviHefESzNeVroG4L24+6qePtl1Konoevi3GXyNN7Z4 chYdIX051CuTA0kqGSb5PyZxX3Tdyvn+55dRuI1dkAFfXh0o2fMdaEA+vLGUb+buq7M7 FyLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=yiYWiM4U; 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 Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id k184si2206234pga.340.2017.10.09.09.54.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Oct 2017 09:54:14 -0700 (PDT) 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=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=yiYWiM4U; 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 Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id E071F21EA15CC; Mon, 9 Oct 2017 09:50:43 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: None (no SPF record) identity=mailfrom; client-ip=2a00:1450:4010:c07::22f; helo=mail-lf0-x22f.google.com; envelope-from=mw@semihalf.com; receiver=edk2-devel@lists.01.org Received: from mail-lf0-x22f.google.com (mail-lf0-x22f.google.com [IPv6:2a00:1450:4010:c07::22f]) (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 C5BBA21EA15C5 for ; Mon, 9 Oct 2017 09:50:41 -0700 (PDT) Received: by mail-lf0-x22f.google.com with SMTP id g70so12474826lfl.3 for ; Mon, 09 Oct 2017 09:54:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=3wQ354SZgnRk23NoVJnpxfDn/hM5ledE6OyClaFyI3Q=; b=yiYWiM4UV/YQuATgSCwWurb+axsZUNMEWOyNVzgYZ8+QqL+O084i92YMu2+Woj0Z+8 6M58u998tehrWFoN/PtLV83SE/dFvK8dXd37uDIDaZIPCRVyEH5Cad2ERD/YSPa5TEND 9nZw/l9Q1pTiF0tzIEWsFHS0L9jtnKRHreGiPEZcjIHhuRhTvOrRGjyi8f2fYY3qLl4q LUr0AgW/RqJKsvB0RY63+qll8zN7Q348si3JAdlaxDRM3e9fuWR4f11srRj0emmFXeWf ZAmUy/5V5hEN7bLLhBvwbObUl+PYI9o1N3S3jJ+Xq1JhDfP4belRv4x4Qdzv0cTFdj+a XhTA== 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=3wQ354SZgnRk23NoVJnpxfDn/hM5ledE6OyClaFyI3Q=; b=iFjKk2R//rBy7t3PmMVgpekVjzZIv/tGfe3O0bvgvQE84cZ4Bo6j1fsyio4v3SCPZU W8nO9NYBAfhf2PrNSRSHNFoDQ8DSRPU3CrcfiifNhxolu6kEsF8GONrMUx4Uqk9Q1/fb Y4ivVHjMIEqAHXcY0A1s4oiXg+7Z0FK7CteH9pt57GlawbeydhhOXd7c1l/cx1DpY5xG Oz3EhGAZAiU+ZdgF20BrvV/4T8Znsn89gghYbUTjF9VZvjFFkhU+hqovv5D1v/J85VxF Km7F+Zsi59xTWUqVQ4ytI9icDNSsrgwIEUFhVhBbXXhdn55G8BRLIk2jqjQE2GJOEWiB PQog== X-Gm-Message-State: AMCzsaVDK6250LiKvChJMaWCptxblU8w0PI8SXuDa8cPJXX/62Xt3Vxr pN/sLasFZuQjkA0Pn53zIFHfWWMVhCo= X-Google-Smtp-Source: AOwi7QA0ttJEHWm/ZXhNy+UveQOa7CWP6U9AtW7HYuseABtVcrVZyDKPXcNjtONPNQH9zXfp8mNn/A== X-Received: by 10.46.41.7 with SMTP id u7mr4481956lje.107.1507568047247; Mon, 09 Oct 2017 09:54:07 -0700 (PDT) Received: from enkidu.local (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id z204sm1421490lff.33.2017.10.09.09.54.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Oct 2017 09:54:06 -0700 (PDT) From: Marcin Wojtas To: edk2-devel@lists.01.org Date: Mon, 9 Oct 2017 19:00:52 +0200 Message-Id: <1507568462-28775-4-git-send-email-mw@semihalf.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1507568462-28775-1-git-send-email-mw@semihalf.com> References: <1507568462-28775-1-git-send-email-mw@semihalf.com> Subject: [edk2] [platforms: PATCH 03/13] Marvell/Armada: Armada70x0Lib: Terminate call stack list at entry 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: jinghua@marvell.com, ard.biesheuvel@linaro.org, leif.lindholm@linaro.org, nadavh@marvell.com, neta@marvell.com, kostap@marvell.com MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" From: Ard Biesheuvel To avoid dereferencing junk when walking the call stack in exception handlers (which may prevent us from getting a full backtrace), set the frame pointer to 0x0 when first entering UEFI. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel Signed-off-by: Marcin Wojtas --- Platform/Marvell/Armada/Library/Armada70x0Lib/AArch64/ArmPlatformHelper.S | 1 + 1 file changed, 1 insertion(+) -- 1.8.3.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Leif Lindholm diff --git a/Platform/Marvell/Armada/Library/Armada70x0Lib/AArch64/ArmPlatformHelper.S b/Platform/Marvell/Armada/Library/Armada70x0Lib/AArch64/ArmPlatformHelper.S index 9265636..72f8cfc 100644 --- a/Platform/Marvell/Armada/Library/Armada70x0Lib/AArch64/ArmPlatformHelper.S +++ b/Platform/Marvell/Armada/Library/Armada70x0Lib/AArch64/ArmPlatformHelper.S @@ -16,6 +16,7 @@ #include ASM_FUNC(ArmPlatformPeiBootAction) + mov x29, xzr ret //UINTN