Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp424040rwb; Mon, 26 Sep 2022 22:15:34 -0700 (PDT) X-Google-Smtp-Source: AMsMyM64fghyAm1P7qvoBO5Dn8pNU7m0hWBYPfr+0kNSJXhUv1iRH1Owjj7WqTyI23zwLy1xnbRE X-Received: by 2002:a05:6402:4411:b0:437:b723:72 with SMTP id y17-20020a056402441100b00437b7230072mr26650250eda.38.1664255733847; Mon, 26 Sep 2022 22:15:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664255733; cv=none; d=google.com; s=arc-20160816; b=YoJpGsTg14jNGsF7U10u6ackPorHLptiDKe7jD8Bg6L0CE0R3z38ohHxca+62geEMM YC4/lHLL7jK313Y8Fmt2hLF4m4frXsXVczVqnqSVXUWD385TUghCFzsbbIxF0pnBqSmP kJciup6xrOpNXLEeUKTNEPrtvNSfkEUQXlAy4gV1Iz13WD/9OvqBM8ASMsix3HZakNZP s/lQNYR0dcNuXuSHv6fm3D+WYZb/UUIsl3DozgmqKUh5vzyOpc1nA/LtNqV3PhWhj5Pc vxUsRBXJWu2Gb7am+ab5YH528Zc2SBq1rLi3pA+0qdnlANbOeN4s2EjB5NgBgKC4kNm9 JwcA== 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 :message-id:date:subject:cc:to:from; bh=mbSuNKBPdxc624NMW3LVAkihZLMZM8nQCGESnDvqX90=; b=C2DFSMyhw2wuDHpPpjCoUZmb8Nc68vUcVHXFlPpo5Gw3+de4l0YrtUPO2e2MsW2SiC oZGBbctJY+Et2SIwjEEsCQ3d9Vb7UsFv7mYT9B0VPmcazePb19lcg/v9/HozgnprgaIl dwDIaT6IuKSyphgLcTXoU9FUn8l3FWiGAKNUWG50OTHxobJLg0laJ6Hpbp/PIFrglSLe pUqZvamlZM79asjLEgHNA9VwRv4EYdsij/4kBvh6/RDk08cL3dvcRHsqupapBA3WGVDl aUPMbQ0PZENaJexrBqkkzeFi3Ak1QUyQMUj8HOG7oW/cFE9I/nC3r+B7QAPaCjjDVNUl tSNw== 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 qb15-20020a1709077e8f00b0077ccad52420si275472ejc.275.2022.09.26.22.15.00; Mon, 26 Sep 2022 22:15:33 -0700 (PDT) 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 S229559AbiI0E6h (ORCPT + 99 others); Tue, 27 Sep 2022 00:58:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229804AbiI0E6f (ORCPT ); Tue, 27 Sep 2022 00:58:35 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9A901023B4 for ; Mon, 26 Sep 2022 21:58:34 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 57156614BD for ; Tue, 27 Sep 2022 04:58:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AC55DC433D6; Tue, 27 Sep 2022 04:58:31 +0000 (UTC) From: Huacai Chen To: Huacai Chen Cc: loongarch@lists.linux.dev, Xuefeng Li , Guo Ren , Xuerui Wang , Jiaxun Yang , linux-kernel@vger.kernel.org, Huacai Chen Subject: [PATCH] LoongArch: Align the address of kernel_entry to 4KB Date: Tue, 27 Sep 2022 12:57:20 +0800 Message-Id: <20220927045720.2767521-1-chenhuacai@loongson.cn> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 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 Align the address of kernel_entry to 4KB, to avoid early tlb miss exception in case the entry code crosses page boundary. Signed-off-by: Huacai Chen --- arch/loongarch/kernel/head.S | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/loongarch/kernel/head.S b/arch/loongarch/kernel/head.S index 8f89f39fd31b..7e57ae8741b1 100644 --- a/arch/loongarch/kernel/head.S +++ b/arch/loongarch/kernel/head.S @@ -34,6 +34,8 @@ SYM_DATA(kernel_offset, .long kernel_offset - _text); __REF + .align 12 + SYM_CODE_START(kernel_entry) # kernel entry point /* Config direct window and set PG */ -- 2.31.1