From patchwork Tue Jun 7 08:10:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 1639852 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=tKe7EoUW; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (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 4LHNRg3qqKz9sFs for ; Tue, 7 Jun 2022 18:14:07 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C086C84399; Tue, 7 Jun 2022 10:12:34 +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="tKe7EoUW"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2F688842C2; Tue, 7 Jun 2022 10:11:53 +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-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) (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 34CB0842FD for ; Tue, 7 Jun 2022 10:11:11 +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-x530.google.com with SMTP id b8so5226734edj.11 for ; Tue, 07 Jun 2022 01:11:11 -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=/kdUkM4vRdr3zudomb8GJz5tx+uPnjCb68Ywdi5Ke0U=; b=tKe7EoUW3KsTm6HL7qhsyPm85XfGQCmcfoj7K1IekSTOTxVKb/ghq0Yo3zYFO58AqG zlNtLicKm8oEeR04LAUirQfWeSUh69K+8g7IaQ0S5LdY3RYcBRMm0WXe1L6E5WTa5qjS L84tTwxmR2KNbxDEUgnIUZckEf3v0KLLShhPh1ldhoCHKgrJZ9FS6jfiDQlhkg4m26eq gYEwODMyIpr8G4AFI/81IqQMhkAzWwsK9I6Q4wVwMQHlYvvFbF5vUN3+Cc7ttGDjR4qr 35L0qZ/bODlgdD5L0pvfo6SIF+lvSdzFSUe+T7SJ7UahvFt1QQO7FLP/oEbMBJJclGuD n0EA== 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=/kdUkM4vRdr3zudomb8GJz5tx+uPnjCb68Ywdi5Ke0U=; b=t2Pe0TZCKs3tfaooR07AWh5kUE6m0I8RAx7hAqdSIbVNF/HKFgKtqjrOI6M9TjPJKD rrO9cD5Lvx6crRGGZj3UAtPatKtvV55C3MjVQMv0fBy9G3sJxa5I3RkDz0MW9iHlm8SH tuFJ84WOvADvgPVAzF7J47Zd7NReFMh9bBtioXVQiZXbEOea8K0GN+ho/1EqiHPZyTy8 j4bi+YN3l+zbginUimQMe6gBpQLa0+QzGP7sAOXCBDGT7tc4d7VTS8GN7dxKJzeKLDur JJOvFIv8uBbDvv5CdE0oOU2xtA5Ix40FaF4P+6UOnR6t2FUcnUIwvN5Oo0zj1h005SGc UiKg== X-Gm-Message-State: AOAM531mFOISG1X2qUQp5gFFog0x0yUVV+pLouoHiw5jz8Q2H8GmosDs wQ8w6ISYFya61+guD4qTgHz12my4hLCmQA== X-Google-Smtp-Source: ABdhPJz0IVIqxh8ZbsalRpmH2Ws8dbstY05G20wN3AEJplmrmC8ZzU6IDbnDcB+KPtgt2k6P8aFtgA== X-Received: by 2002:aa7:c744:0:b0:42d:f68f:13de with SMTP id c4-20020aa7c744000000b0042df68f13demr31556144eds.294.1654589470383; Tue, 07 Jun 2022 01:11:10 -0700 (PDT) Received: from localhost ([2a02:768:2307:40d6::f9e]) by smtp.gmail.com with ESMTPSA id c24-20020a056402159800b0042617ba63c2sm9939331edv.76.2022.06.07.01.11.09 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 07 Jun 2022 01:11:09 -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 v2 13/23] microblaze: Change stack protection address to new stack address Date: Tue, 7 Jun 2022 10:10:30 +0200 Message-Id: <959f673144ca94257867e31f559618195cab4a04.1654589430.git.michal.simek@amd.com> X-Mailer: git-send-email 2.36.0 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 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 --- (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 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 */