Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp394073rwe; Wed, 31 Aug 2022 04:51:32 -0700 (PDT) X-Google-Smtp-Source: AA6agR61kGzibtWBjp7thL3t0xXb+E8wmbWPA/hKdd6FHkYcWD2GNivHLrZ3OBE3s4pNsUBkKB/N X-Received: by 2002:a17:90b:4a4c:b0:1fe:24ac:2bb3 with SMTP id lb12-20020a17090b4a4c00b001fe24ac2bb3mr2928123pjb.79.1661946691990; Wed, 31 Aug 2022 04:51:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661946691; cv=none; d=google.com; s=arc-20160816; b=iHVxR+tVotYMBkrDdDZ4zW4ojdo5kKrRqBBJbTkPO4r3FjM5IkWO/4gfB6Q4Zwfayn Y2inDB+VmWYX5BNq9cOTCHeiewo00hj3lavIyB/EvIIfYJs/VhcbGWjMTCz/hR9l0PMh +SNV6ykaS5j3RTA4TsjzcWkaweqo+mF2YD7/n6NBfQZIIizSrwhN+v17c70TktgzVVns kn91i2YJpf/ARJKCZ/ytSvk6qHTeDi433SQ0mBn2Qllxgx3vCiG3agjjV3F79HrrSoEj +uxRXONPcC9WBzX131lQXF/7Q9L5zpX3pq1eKgmYeKcEogndpqPSYz/+INoabIFXhXtm unDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=hjOP8ln1PmQz6Bsj9aBEfjSO0mMxH9HlANbmGGmhIFQ=; b=zzuCVnBkUyDgf6uG+RL5h5ijkza1XbfAi+bwcLiVmOAAs7GA5LtxEb6PYjZlPJN7hA WVIp0xSjFU1tAocu+3lCtOP0BD012w2YZNzqck6eLU1gBzj16ReaPGV+Q2bbgZg1gMo2 gOG5be6Abfw8sptzMG//4u2QrqJailj/RU+v8u5Pwd9oGmJufNUZjCYVjXOkbQ/Xh5lL xSACsrbiTAWloMpmjLhr6GqE6cM74ony0iB1n3Bjuq5TXR24L0mzE0YpBCpmeVk2cjhB oiAEotGJLTcIxFztooFydIm+gLEQ2ZQG3gNsEa5+TxOGGMkRPp9LZeq+xshYp1ErPPky eG0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=eFRdaJVM; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=xry111.site Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z4-20020a170902834400b0016c474690cfsi13320021pln.318.2022.08.31.04.51.19; Wed, 31 Aug 2022 04:51:31 -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; dkim=pass header.i=@xry111.site header.s=default header.b=eFRdaJVM; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=xry111.site Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229984AbiHaLJz (ORCPT + 99 others); Wed, 31 Aug 2022 07:09:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229752AbiHaLJy (ORCPT ); Wed, 31 Aug 2022 07:09:54 -0400 Received: from xry111.site (xry111.site [89.208.246.23]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8DF510E0 for ; Wed, 31 Aug 2022 04:09:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1661944191; bh=8XbdqaONtZ7pmuAJ5DQX8N6I8PArVUZF81z1ZRwruLg=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=eFRdaJVMKl8xAVHztJPif52LbxIx1i2fOFYxYXqKWIUc83IH/cQAlxpsVhJvrBuP9 G4nvJxSj2uorsllgHVjC2mmEU7RSZVIqtMWGsm+RQYYoXXzJ2l4J5ZZp0l/3IJ/yAj rvtQrHZXd4UjqWnf0g6hL/riObYm6p5JVSkytoOk= Received: from localhost.localdomain (xry111.site [IPv6:2001:470:683e::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id C6D8766841; Wed, 31 Aug 2022 07:09:49 -0400 (EDT) Message-ID: Subject: Re: [PATCH 1/1] LoongArch: Fixed loongarch kernel csr_xxx implicit declaration. From: Xi Ruoyao To: =?gb2312?Q?=C0=EE=D3=EE=C5=F4?= Cc: chenhuacai , kernel , "jiaxun.yang" , loongarch , linux-kernel , caizp2008 Date: Wed, 31 Aug 2022 19:09:47 +0800 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.45.2 MIME-Version: 1.0 X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROM_SUSPICIOUS_NTLD, PDS_OTHER_BAD_TLD,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 On Wed, 2022-08-31 at 15:54 +0800, =E6=9D=8E=E5=AE=87=E9=B9=8F wrote: >=20 > thank you for your reply=E3=80=82 > I used the latest gcc tool on the official website of loongson,gcc- > 8.3.0. > http://www.loongnix.cn/zh/toolchain/GNU/ Vanilla kernel cannot work with Loongnix: 1. In Loongnix, GRUB loads pass the essential information to the kernel following "Loongson Firmware-Kernel Interface Specification". Vanilla kernel does not support it and will never support it. 2. In Loongnix, the syscall numbers are different and the layout of some data structures used in kernel UAPI is different. Any Loongnix application invoking a syscall will likely blow up immediately on a vanilla kernel. These two problems are very difficult. There is some plan to insert compatibility layers to work around them, but not even one line of code has been written AFAIK. So if you want to build a kernel for Loongnix, don't use the vanilla kernel. If you just want to build a vanilla kernel with a pre-built cross toolchain, use the toolchain from https://kernel.org/pub/tools/crosstool/. --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University