Message ID | 143e244c828910a400b5589b23a6aaa5bdcc0fb4.1655287429.git.michal.simek@amd.com |
---|---|
State | Superseded |
Delegated to: | Michal Simek |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> 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=c52J4CE+; 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=<UNKNOWN>) 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 4LNLYg3tRMz9t6h for <incoming@patchwork.ozlabs.org>; Wed, 15 Jun 2022 20:06:31 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 284F5844C3; Wed, 15 Jun 2022 12:04:41 +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="c52J4CE+"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B4E92844A3; Wed, 15 Jun 2022 12:04:29 +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-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) (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 6F0728446C for <u-boot@lists.denx.de>; Wed, 15 Jun 2022 12:04:27 +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-ej1-x632.google.com with SMTP id v1so22112325ejg.13 for <u-boot@lists.denx.de>; Wed, 15 Jun 2022 03:04:27 -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=sSOfhCDzYe8wwhwsc8DY160ixzidP+0QfnDEEWhouJI=; b=c52J4CE+6zsnJJBrMdJykSqv1HQLzMOZ1aO5tZt48h1bD696ZVqQIikt+2pUS9Edxv +y5vDRP/oiSpzf/s6AJQpmQPxwfuyezD4zWp2t2T8UJXWk2a5Mp4qSmX959Q36Atby05 zo2ctYc3av7kjRANFrwVZw1rwyPybTZKbDRwmVli8cK3saNOeVz0U3es5bUvhdNNceYC OIf5jYUuBbCfYAgStlHrZvRCCKprAojd66777HrzuUkhUNsX8l1aSF327aEn9ByMenVp qfEga0mR53RtTZbbK3GYsrphP9e5IKnNmBWgTFPqBkYDGCAF3hHXOary7XNDbFIuk9Bd HC/g== 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=sSOfhCDzYe8wwhwsc8DY160ixzidP+0QfnDEEWhouJI=; b=CJb6IKnCR0pkm3Rx6rx20noqjSK8/uqv7/QGcdBoGNkb5fhBQU7qtLbNalLgA4s6OM 7XqmfTyZFRccXI0tSTirqeaVl1aWlW5ok758l3FO5oJV9wT/v84lPMz4iSac/V+58FPX Fil7GPfwzL0GIXYmyo73YJeE0b4+3MDdSZ4fsgyLDYlMLhv9g1HfdoxpA2Kbfepuh+At GG4L2Q1r2YjxMN/TNhINRDwliLnLvGPtCW4YPogmvGVRmKtbEO/rSUjghwopK1hcw7oo uK2vttmdfyS4R7jN2pJARe4jQSQlSI+8n8u+1U7PwQZ/LtsSWPqSRL4VMuYOWQB/ySSf DjJg== X-Gm-Message-State: AJIora/9z5tpTip0VnceRzsaZrH4PS7mEkZevOsTr3gW+TFRpUvgJTfI kgUkGk8ndAugewKcEdmPtdS8tSXZEhhfWg== X-Google-Smtp-Source: ABdhPJyxUfcCAFDCDXw3sDGPyfcYQXGrqol9lZyYWX/65keRTtXsJgy0+oqzL6E5Pmtxr5n+XVc+JA== X-Received: by 2002:a17:906:37c6:b0:70c:f9f:f0c5 with SMTP id o6-20020a17090637c600b0070c0f9ff0c5mr7823460ejc.743.1655287466630; Wed, 15 Jun 2022 03:04:26 -0700 (PDT) Received: from localhost ([2a02:768:2307:40d6::f9e]) by smtp.gmail.com with ESMTPSA id g12-20020a056402424c00b0042dd4ccccf5sm9146628edb.82.2022.06.15.03.04.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jun 2022 03:04:25 -0700 (PDT) From: Michal Simek <monstr@monstr.eu> X-Google-Original-From: Michal Simek <michal.simek@amd.com> To: u-boot@lists.denx.de, git@xilinx.com Cc: Michal Simek <monstr@monstr.eu>, Ovidiu Panait <ovidiu.panait@windriver.com> Subject: [PATCH v3 13/23] microblaze: Change stack protection address to new stack address Date: Wed, 15 Jun 2022 12:03:50 +0200 Message-Id: <143e244c828910a400b5589b23a6aaa5bdcc0fb4.1655287429.git.michal.simek@amd.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <cover.1655287429.git.michal.simek@amd.com> References: <cover.1655287429.git.michal.simek@amd.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean |
Series |
microblaze: Add support for full relocation
|
expand
|
diff --git a/arch/microblaze/cpu/start.S b/arch/microblaze/cpu/start.S index a35d8d8ea29a..2aae4a0b7ccb 100644 --- a/arch/microblaze/cpu/start.S +++ b/arch/microblaze/cpu/start.S @@ -268,6 +268,7 @@ relocate_code: * r7 - reloc_addr */ addi r1, r5, 0 /* Start to use new SP */ + mts rshr, r1 addi r31, r6, 0 /* Start to use new GD */ add r23, r0, r7 /* Move reloc addr to r23 */
SLR low address is still setup to 0 that's why only high limit should be updated. STACK_SIZE macro is present and could be possible used for low address alignment but it is not done by this patch. Signed-off-by: Michal Simek <michal.simek@amd.com> --- (no changes since v1) arch/microblaze/cpu/start.S | 1 + 1 file changed, 1 insertion(+)