From patchwork Wed Oct 11 10:15:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcin Wojtas X-Patchwork-Id: 115536 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp574375qgn; Wed, 11 Oct 2017 03:16:08 -0700 (PDT) X-Received: by 10.84.217.206 with SMTP id d14mr14691394plj.62.1507716968277; Wed, 11 Oct 2017 03:16:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507716968; cv=none; d=google.com; s=arc-20160816; b=YanUiWQ9RnOEiTd0wEzidE2ah7/zPWJj8LVpd2k0n+EN68kJ5l4Bb2k8CrdFiw1m8C yVkKsA3A7RnO+aLB1dDkKeemyja5Hvuvo2hY3u5JTeGspBO3aGDSeXGu7fzoZUm1bGfF edkVLJXf8XiNaG0/6oMrizn0wQMj/w5+QKM05vBgm2MZJNTcjyFdkkL+JoXn2oW5lX3M CfjMj3kQg8YWfLyIw3MlsNMm/FIdCDjcdutHn0HIPlGD2poEEu0M/xtTGGVB/I5D4Jeq F1yOuOYVBXKBtlgeeRlnctZBjhltm8/963Se38ns578j3CUO/iVcz3uPR2zTUqPyjqOT dXbQ== 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=QIsREHWoH4k2yXcwZbIXuDSNdSMaQ4AH+BEpTWZHSxI=; b=oSHDxBNuohsv/i7pV8i5lgZ4x5vleqnnCamimvgvAL6+C6rp95nrsWZZ/tCuUSbNMw 8Gw2sxZsvScN93nfRHlMkdhKuIKCZN90LqNrlgrmKfAvG8mj+SRDKYjcA70yc9iRcUAo IJQADk50b3fX7ZgWDfLqthhX4a08i4XgOqm73DI7kEiCkj5p8UPkdyrhNBqpFKYT7RsL Xrj9PwVIQ+Mi+ckqfKaV0Kwh56FlpI4EBwMm4DXdEefTNPB5kiHgObVxp3Y9g50ilC8L L7MnwhXfU3lEsLXckEMzSl5VDw5mWcNtZ7bFmB5ZoTognWzCHx5qAN4tq7Be+palDj0k 3kWQ== 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=mAWd+FG7; 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 Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id j64si2230518pfe.155.2017.10.11.03.16.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Oct 2017 03:16:08 -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=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=mAWd+FG7; 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 Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 5DB1021FC7475; Wed, 11 Oct 2017 03:12:36 -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::236; helo=mail-lf0-x236.google.com; envelope-from=mw@semihalf.com; receiver=edk2-devel@lists.01.org Received: from mail-lf0-x236.google.com (mail-lf0-x236.google.com [IPv6:2a00:1450:4010:c07::236]) (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 2B74A21EA15D8 for ; Wed, 11 Oct 2017 03:12:35 -0700 (PDT) Received: by mail-lf0-x236.google.com with SMTP id a16so1499884lfk.0 for ; Wed, 11 Oct 2017 03:16:04 -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=4kB0WtZ99414zik4Tx61FAcKtHMMNOTx33aTZ2ghG5s=; b=mAWd+FG7Z/Wu4ZNG+g3+Xu9/pDzqHl16tbQF7gDPJx/tfLjtDnlZTmsuvFgjSV5Kle wLRPQELdc71+oOudaXyDomhuP8k3A3Hu7ATBXUyY3bpBVGR8LmNl9n3jnYKC30tOIb8h u7KrdwVhvsn0WDsEl5jb39gfCio5IPPos+MGfuFK+hfo7pFB2+YC8kU/oOxswIClhUFm Bd0RuaUdl5gjjXOkhE9s4pmJhhfeksSDrNRQqYDuh22fzBLcILkAjLlIjEEbVCEpibSn wL1UzWXY1fL2GZ+9+ffWCrsRfbtoKvkd6amjd1E2vndxcRP8hj2Tva1NvGZoBINtbIlw m4eA== 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=4kB0WtZ99414zik4Tx61FAcKtHMMNOTx33aTZ2ghG5s=; b=i/9m6osgObJ6Gv2UYKKLqM4qIGVgoyWiSBdsXXuLzOajAKvK9B8U4PzMF1gwOzJFdj ClYSnJZJROT272OVICDzZaIleX/qO0yhOT3gbeUzlE2yVtZ4UyYy6BUl+Psm8QykXDXK DXF6bxw5gdbYI6e+zvXNJj5KrUGB3ga7UwsfOH9qKzaXJEdEIuquxUBFhegQZHVdINVp gDgjixcyKFSskiFuORokaFWcZEI5Cam2mQ9VmHgqi3idoM5uAzOh6tJhgOCFw1r/wZlO wEjvY/XDFOk5jMOp65v9BKgdzFc/4exzB3uvAnLZxQIIM9+d/P6SJtkygZYdnvpN7xbx CgKQ== X-Gm-Message-State: AMCzsaVvb2zcmTF2n1DW0tssBX8kN0kVn9w7yq5ehlbxYybxztrE4tvJ Vy6tYuTErc//KDH6SmcoscheAxbfNfI= X-Google-Smtp-Source: AOwi7QBA/8zAFXVigvHCnJ8ktLO/T6DM9GqZSsh3ZHkzoQoTkOhoKCogl3FLa/yBqbUB38ePohA/hA== X-Received: by 10.25.77.75 with SMTP id a72mr5784686lfb.262.1507716962558; Wed, 11 Oct 2017 03:16:02 -0700 (PDT) Received: from gilgamesh.semihalf.com (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id 84sm1539781ljc.67.2017.10.11.03.16.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 11 Oct 2017 03:16:01 -0700 (PDT) From: Marcin Wojtas To: edk2-devel@lists.01.org Date: Wed, 11 Oct 2017 12:15:30 +0200 Message-Id: <1507716939-31798-4-git-send-email-mw@semihalf.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507716939-31798-1-git-send-email-mw@semihalf.com> References: <1507716939-31798-1-git-send-email-mw@semihalf.com> Subject: [edk2] [platforms: PATCH v2 03/12] 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 Reviewed-by: Leif Lindholm --- Platform/Marvell/Armada/Library/Armada70x0Lib/AArch64/ArmPlatformHelper.S | 1 + 1 file changed, 1 insertion(+) -- 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel 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