Message ID | 20231201111512.803120-2-gregory.clement@bootlin.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp1041166vqy; Fri, 1 Dec 2023 03:16:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IEiYcmd24mG/64m2HzOLj2j5RL4oRe90BbVyzVdgW2eUqM5KpimFTfz+zYJ1/uKztyANEUs X-Received: by 2002:a17:90b:4f43:b0:286:19b9:b7f with SMTP id pj3-20020a17090b4f4300b0028619b90b7fmr8563459pjb.6.1701429393920; Fri, 01 Dec 2023 03:16:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701429393; cv=none; d=google.com; s=arc-20160816; b=F2c9UOpiNBYYooIbBB7BpHOqWvoAS/ZkZFJYk70xYnEfPyy5gK6wlhkIADWzyuzjun ZZw65QImDQwAv7SvPUbz4RBvyPqj4VSAukyvEacqGvarhYuWrzFbjWkhJnc1rDL3/o5Q CFoOkkPQTmLUaxYEHk82WO1FejxqBdX5z3fbOFh/SLIFd+hvOdxdaEgVXMa0gfTChGjB iVzvRicthGu92lyKG269FxTtfRHAm3XdQNFcvaFG1080s5Aq4QtrKF7dmOFFq5hsPLT9 eDTER4uHWnNiq3Htewde/hkOs9xoDwR3VYYFMUnPwGMa2MOl6OBkBgU8Wq8jB/zLV984 56tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=F1EYqlVYF1fJ33cC2a0Mertg3uhTJJ/NIkImZDHepJg=; fh=RBP3N/z2dRF20CQ37qwMigTrhQ/jDE9ZZ/B9XmmkgnU=; b=haXJ4xtTJgh2jhMvYD1OKc45cJlWfkVZVvv4srssM6xwvYJ/4vTs+Dw9oOFxfN8S/H 3xC9v4e7MWEPaqyS6M0a+ZSCI7NC3yG++EO94j7beJXrOSD2jmDn8zEr/Z9InI/krAxf u89ayczCg4e8WJcZMg9KKGgtKTJqxPfpiGhLn/aHVv+lErSxCFk37NT12QSp90jwr9i3 OHybdAwp4w32uC43yMn36BOD2iOnW/ZSK2jz9dnpdbn5JWsGfnDFQ4krZpRNjWmW/lFq Yo4kR1SeGHWNWEbxx52fMKBburqjMXN5wTz7Rt4DfdEtCzxTrdIoFMvFT6kYjZWZ2i3M MoAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=cEZ5o9uE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id n11-20020a17090ac68b00b0028615f9800dsi3253592pjt.42.2023.12.01.03.16.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 03:16:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=cEZ5o9uE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 1F420849FA78; Fri, 1 Dec 2023 03:16:18 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378503AbjLALPZ (ORCPT <rfc822;ruipengqi7@gmail.com> + 99 others); Fri, 1 Dec 2023 06:15:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378500AbjLALPS (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 1 Dec 2023 06:15:18 -0500 Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 460B0D40; Fri, 1 Dec 2023 03:15:24 -0800 (PST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 5247320003; Fri, 1 Dec 2023 11:15:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1701429323; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=F1EYqlVYF1fJ33cC2a0Mertg3uhTJJ/NIkImZDHepJg=; b=cEZ5o9uE4LGZadkuuOwl7fpkiHQMqA5b9yqsgl0WwlC0M1iAy6RmUmdRdnuBUOSzBUAXea KiAxdemJDnWFYWQRriqNHStSr7XI2UEHimmAda6VwMKahRtiTf3qYMkIkJjOdXlOQFe8sL UeRHFy3NfnhiD7xlWQBogldRxQ2IIKkySiQU4MkSEW2we3Ix7nHzoSfAnjRUnfzKrcriMF Od/3ekaGRsWjkDqNnXwHj0Udcq8nyW4BLgZCWSbQ5dxqPBUeOsT4Gz/YM8XAnLOqIswhrS 4YE75U9qK2CHBaViRfv6llhlTkyTjVQ32elD/2YnUTPhiXqLcNxFvo/NNJ/A5w== From: Gregory CLEMENT <gregory.clement@bootlin.com> To: Paul Burton <paulburton@kernel.org>, Thomas Bogendoerfer <tsbogend@alpha.franken.de>, linux-mips@vger.kernel.org, Jiaxun Yang <jiaxun.yang@flygoat.com>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Vladimir Kondratiev <vladimir.kondratiev@mobileye.com>, Tawfik Bayouk <tawfik.bayouk@mobileye.com>, Alexandre Belloni <alexandre.belloni@bootlin.com>, =?utf-8?q?Th=C3=A9o_Lebr?= =?utf-8?q?un?= <theo.lebrun@bootlin.com>, Thomas Petazzoni <thomas.petazzoni@bootlin.com>, Gregory CLEMENT <gregory.clement@bootlin.com>, =?utf-8?q?Philippe_Mathieu-D?= =?utf-8?q?aud=C3=A9?= <philmd@linaro.org>, Florian Fainelli <florian.fainelli@broadcom.com> Subject: [PATCH v3 01/22] MIPS: compressed: Use correct instruction for 64 bit code Date: Fri, 1 Dec 2023 12:14:44 +0100 Message-ID: <20231201111512.803120-2-gregory.clement@bootlin.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231201111512.803120-1-gregory.clement@bootlin.com> References: <20231201111512.803120-1-gregory.clement@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-GND-Sasl: gregory.clement@bootlin.com X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Fri, 01 Dec 2023 03:16:18 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784078027680325228 X-GMAIL-MSGID: 1784078027680325228 |
Series |
Add support for the Mobileye EyeQ5 SoC
|
|
Commit Message
Gregory CLEMENT
Dec. 1, 2023, 11:14 a.m. UTC
The code clearing BSS already use macro or use correct instruction depending if the CPU is 32 bits or 64 bits. However, a few instructions remained 32 bits only. By using the accurate MACRO, it is now possible to deal with memory address beyond 32 bits. As a side effect, when using 64bits processor, it also divides the loop number needed to clear the BSS by 2. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com> Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com> --- arch/mips/boot/compressed/head.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/mips/boot/compressed/head.S b/arch/mips/boot/compressed/head.S index 5795d0af1e1b2..d237a834b85ee 100644 --- a/arch/mips/boot/compressed/head.S +++ b/arch/mips/boot/compressed/head.S @@ -25,8 +25,8 @@ /* Clear BSS */ PTR_LA a0, _edata PTR_LA a2, _end -1: sw zero, 0(a0) - addiu a0, a0, 4 +1: PTR_S zero, 0(a0) + PTR_ADDIU a0, a0, PTRSIZE bne a2, a0, 1b PTR_LA a0, (.heap) /* heap address */