From patchwork Wed Jun 15 13:21:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 1643761 X-Patchwork-Delegate: monstr@monstr.eu Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=monstr-eu.20210112.gappssmtp.com header.i=@monstr-eu.20210112.gappssmtp.com header.a=rsa-sha256 header.s=20210112 header.b=tghzPB8g; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LNQyM3y2gz9tlf for ; Wed, 15 Jun 2022 23:24:43 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 72FAE8451D; Wed, 15 Jun 2022 15:22:15 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=monstr.eu Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=monstr-eu.20210112.gappssmtp.com header.i=@monstr-eu.20210112.gappssmtp.com header.b="tghzPB8g"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4D75184501; Wed, 15 Jun 2022 15:21:56 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id E40FA844E7 for ; Wed, 15 Jun 2022 15:21:53 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=monstr.eu Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=monstr@monstr.eu Received: by mail-ed1-x536.google.com with SMTP id w27so16111400edl.7 for ; Wed, 15 Jun 2022 06:21:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=HHn5YZe9TJxpReTWRnM+mdVX0gVPBjQ/hegbrYYrLTk=; b=tghzPB8gZaKvxVqPvzFqD30WHPGQ08hlBJc586/KXysTwN4AIyQo0LqH218PvZz8kn HAKB/0TEFGx0W0HTmFu2ebiKKqzPGP7w1gFuhAEq7cYWXgI+hTXAZfQHi1QP80X4Bu1/ jhDrpNxGkbzmPRK6MLGNR4AybRZFAFaRqXDnvx6W+QuJTWIgKbMS1bY1qTUgl/ei9aQJ NRTXd+qoAPnp0cBF284i/lcwhG9TZJiHkbA1mSb6DZ5NF7Z9dTAe1RZrYBZbvWMHxN5a 4bP1qSTo23xOBbRi0SpNa7ez/3TgO8DYlofrZItCdamaTIV4K/RMjr4OXevUt3UeV5nn /lsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=HHn5YZe9TJxpReTWRnM+mdVX0gVPBjQ/hegbrYYrLTk=; b=3idCNsMt/aDNOYSXbUYr5aIXBG6FhDvxCCLmC0YnUdAx8q0NaapE0xfyPKnT7A9ddt y0IeGxTZeujTphXuavT+4e+Mr7rAVscXcakixLQWWFSLfR5aqI0yX9QBbOvIbV2coSf4 X3et1xQP3optvx6TD1CCuYptKXZ0xlu2OFFNb6JRjrw5bYKh0yfJYXahf98RDBLjtb9H UNBv79swSXz0F4OdMaZfgPdRRo5zrEv8E0PJii1b4NA65+eVJGTZWM9AgjwV4WEc6+PX 3tdLTuEvYW8Ua7EwIb2bIRAsBV986cu7REjcPUjLSvcvNVdI+L4m0MxJrif6FzgfSjVG LP4A== X-Gm-Message-State: AJIora/ABWnXupDjOGumxb5hR2YP/rods/XsymxYujWJomkDF8CwkrH9 ING+TPP1lSZJqJsXUe1+JK/uW0AY51yWBg== X-Google-Smtp-Source: ABdhPJw0WQKOwVl01vw3jTeuq718vEiH56Zzg5BbIhxsGCT8UhFFDXgNVncywAzDkW7Fy1MCC6zhYA== X-Received: by 2002:a05:6402:25c2:b0:431:932e:eb6f with SMTP id x2-20020a05640225c200b00431932eeb6fmr12613144edb.296.1655299313406; Wed, 15 Jun 2022 06:21:53 -0700 (PDT) Received: from localhost ([2a02:768:2307:40d6::f9e]) by smtp.gmail.com with ESMTPSA id fs36-20020a170907602400b00705f6dab05bsm6259499ejc.183.2022.06.15.06.21.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jun 2022 06:21:52 -0700 (PDT) From: Michal Simek X-Google-Original-From: Michal Simek To: u-boot@lists.denx.de, git@xilinx.com Cc: Michal Simek , Ovidiu Panait Subject: [PATCH v4 17/23] microblaze: Add comment about reset location Date: Wed, 15 Jun 2022 15:21:13 +0200 Message-Id: <5ca6341b7487708247fe2948d7e496ea6f7c2e02.1655299267.git.michal.simek@amd.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean Better to add comment to explain why reset vector points all the time to origin U-Boot location. If reset happens U-Boot should start from it's origin location. Signed-off-by: Michal Simek --- (no changes since v1) arch/microblaze/cpu/start.S | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/microblaze/cpu/start.S b/arch/microblaze/cpu/start.S index db3998f54505..9aa5fd099361 100644 --- a/arch/microblaze/cpu/start.S +++ b/arch/microblaze/cpu/start.S @@ -144,6 +144,7 @@ __setup_exceptions: swi r3, r4, 0x4 /* reset address - brai opcode */ addik r6, r0, _start + /* Intentionally keep reset vector back to origin u-boot location */ sw r6, r1, r0 lhu r7, r1, r10 rsubi r8, r10, 0x2