Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2915416rwb; Thu, 17 Nov 2022 18:54:00 -0800 (PST) X-Google-Smtp-Source: AA0mqf6Y97wHQEpA5NlPdL1K2+S1DNCX7uew4wHb/vVF/sDItU+0aEZceKGeznq02hgLudPBpY16 X-Received: by 2002:a05:6a00:1f0f:b0:56e:7424:bc0f with SMTP id be15-20020a056a001f0f00b0056e7424bc0fmr5888791pfb.11.1668740040109; Thu, 17 Nov 2022 18:54:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668740040; cv=none; d=google.com; s=arc-20160816; b=VorsDyABalJXLhf8cGDFEt7ppSB80xo5j5JFuCDfMvldAKXY7LX33WAGCgIpmT0A1P T/hxNrx/T/C3ZckX8MLm8y0DihsEiBK9wA+MOu1VMMAzC5RGVwtF+VvuZvQnutwuLwsx tFxn/TRpnS2BdWJf8Pr6UkXKRMItBAA1Srygwh76o3CuSGezaRvV2vDfFFX3ZhHl9ZqF 8Jdgxfh9P+OC/AcYlf74rlBFO8vNxJJIxuqnDfJ7fIau+AL1s0nDnGF7M0xa6qTML9iA XBcYtvrauCbkGl91h52h+Wx+F5XS4pAQTNx+LPl5qOpQWO9Y208lam7Gyz0xeD8eV2H1 nIlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=4JyzRaWLaSV3boZwGIwziqSNHUEToDDdgqz4Dr84K8I=; b=ptK8KMhvQCa5/BMuI0r2WyzyeA8cMLDinczXL4VNHuB+/jVtBRxO9r/G7dPMWCZuV/ LvcWGYYE1jJ0bR5hu3jUh9FmH7NIXa/YS/kox49HQK6r0gKtVOt0KMZm9qc9yxPzGTHi Epsr+/kHpsu6x93uY98aIrF6nTN98PdhTcmdONKPCzlT3C6VxfLiaSgYzaedHPkS7x38 rm0c0UpvHEQYw8f86Scugo8WbilJO+0VwR3RfGIjZVRSu6SLBSDp4mHgXdT0E0vQjOFu ogx0B2y1Z+F26eFfkztRG1ulTblnOQVnD3Sulobkzz8AW4RUXF1Ol5OuHlMl39dK2ELG r7WA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c4-20020a170902aa4400b0016db0d4f4c9si2375618plr.65.2022.11.17.18.53.48; Thu, 17 Nov 2022 18:54:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239229AbiKRCkc (ORCPT + 91 others); Thu, 17 Nov 2022 21:40:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232050AbiKRCk2 (ORCPT ); Thu, 17 Nov 2022 21:40:28 -0500 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.154.221.58]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D05FD6E545; Thu, 17 Nov 2022 18:40:24 -0800 (PST) X-QQ-mid: bizesmtp89t1668739207tva5a994 Received: from localhost.localdomain ( [39.77.115.220]) by bizesmtp.qq.com (ESMTP) with id ; Fri, 18 Nov 2022 10:40:06 +0800 (CST) X-QQ-SSF: 0120000000000090H000000A0000000 X-QQ-FEAT: 7jw2iSiCazqm4g+4YM0g74QsC2jHm2PIcQbsNK+GUZO9xquOKpCewj4oNufIg pDC1Pj8ZSFA+umyfVA0/IMzOsuVHRuhmDvrGiqq8EuKOtLzKmZ9jn4S+vghECGMW6yIv9Jk v985ChFYLMD9baK7iBFV2wOrdGgF76Y1l/SIu5ZOY2555LIdIwYvoUBL1jfaDXAG85t7syA 05Z66hmYuhhRISBppBpHDTfpVeFpCoh1fmZJ7V1QfZVds3h1WHhCZI8mF8shlOZI4YE7dFU ddYCTH69l8LacxaZWFB8DpcOeU5gCv/hYck6b/bqLGaMeBwCWQK7QWq2sRpBMIzT0Q1W/0t YqKOAq3j8MVKKauy9gQTNyH4jGnVVDjWqEC35RRdmrHTz3ipcdNFe/a0jkqHw== X-QQ-GoodBg: 0 From: Jialu Xu To: guoren@kernel.org, linux-csky@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Jialu Xu Subject: [PATCH] csky: add alignment for the delay code Date: Fri, 18 Nov 2022 10:40:03 +0800 Message-Id: <20221118024003.1245339-1-xujialu@vimux.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:vimux.org:qybglogicsvr:qybglogicsvr6 X-Spam-Status: No, score=2.8 required=5.0 tests=BAYES_00, RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_MSPIKE_H2,RCVD_IN_PBL,SPF_HELO_NONE, SPF_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Specify 8 bytes alignment for the function __delay or we get bad delay like udelay(10) will be 25us in fact. Thanks for Guo Ren's help. Signed-off-by: Jialu Xu --- arch/csky/lib/delay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/csky/lib/delay.c b/arch/csky/lib/delay.c index 22570b0790d6..f5db317313bb 100644 --- a/arch/csky/lib/delay.c +++ b/arch/csky/lib/delay.c @@ -5,7 +5,7 @@ #include #include -void __delay(unsigned long loops) +void __aligned(8) __delay(unsigned long loops) { asm volatile ( "mov r0, r0\n" -- 2.30.2