Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp581233ybm; Wed, 27 May 2020 02:56:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwosF4kga+f0TXOoDaxEcaMjm2TWZp7uGA/tQXmrBiFjUOrNUiID5EOwJ6OC/8WSsS+dw2s X-Received: by 2002:a17:906:5f87:: with SMTP id a7mr5158896eju.70.1590573406566; Wed, 27 May 2020 02:56:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590573406; cv=none; d=google.com; s=arc-20160816; b=X5D1pbkf2wjY/i+fDReVKlTW+onjricKl/CcpcgGttvHngsjNlpjlMJPvYmtJkAqVM /bXxPww14Xc8nXdcZYtn3o4RcQ+VqD1nIGd1TAtIkh1dVbnh4Hp9s/LLRnDLhWLJIJu0 lX19uPt/AepaoNmDdbHKj8zVX+NWYS4Gak1kZuNQKxoITaw8Z0Kko3eir0SqzkWyl1x0 2m3g9JNrn6KX2LRGZnV1SXgKYijwJeihxt+iEYtaFSe+wJCCE8LJsCq+T60hq8XJ8rj0 JjhNzD8RtUQwDSe3Oyg3FEG1e5U9QcBVhQhT3vlLLCLdDuH49+ej8YIpQP90udbfL7zK 6Zgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=KCYAjLQT7yMz5OZBRMUUeUR/TkXu5R6JN2SYrRcRGOY=; b=B6wgd9tqBhc+dc0ab6cwLZ4nQCDkDCSyPuAMkQfRrhflLhQ36KQzk0s77dPB2uDx47 vTXRGolCr6hP04Hm0otO98ymMGVpWaCh++ex+JTmnes6M8Gh4Z/vtr2OBRapfGevCn4P JPYcG/jnNQ6WsLnbGI+eigmfjoOWRtarOnNg8/7XKWUiM4qL3jh+wVV3L6yvn056pScE ogQzZOJPn9OtRS35sYoj8Jks30FMaF2LNaYRt3iQGt71B0YMIGs8JNDAp+NQyItuTFKc FQEGDjbfxIIoF4cUct6ynso851hfZSIfIcIxzTXIUyDf5MMnBScQs9epT+jU0pq7HQFI 6BQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@flygoat.com header.s=vultr header.b=V3g2rLkL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m6si1263735eda.215.2020.05.27.02.56.23; Wed, 27 May 2020 02:56:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@flygoat.com header.s=vultr header.b=V3g2rLkL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726222AbgE0F1x (ORCPT + 99 others); Wed, 27 May 2020 01:27:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725267AbgE0F1v (ORCPT ); Wed, 27 May 2020 01:27:51 -0400 Received: from vultr.net.flygoat.com (vultr.net.flygoat.com [IPv6:2001:19f0:6001:3633:5400:2ff:fe8c:553]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF798C061A0F; Tue, 26 May 2020 22:27:51 -0700 (PDT) Received: from localhost.localdomain (unknown [142.147.94.151]) by vultr.net.flygoat.com (Postfix) with ESMTPSA id 8425220CD7; Wed, 27 May 2020 05:27:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=flygoat.com; s=vultr; t=1590557271; bh=hN3UCNC1oAOyNQFrDq068mmAnFijUJCN0J4zaXVDdZo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=V3g2rLkLvAC/QLjcUDlFgdqwKY+LvqZPudN54UNjbZl9AclFdehPrvQ0XD08OrcXh mCRYdC044xrl5FHCuRD/CBYQC6rIApHVkOqWfVKvrspv0+a7ZUEKRhTimTZYBg0Ngj Noi+qkHVqh80v20x3kqS5Fh/V5bDHgWopvY/dBDO34geyLvh7bkGlZlWzozz6jM6B5 sJBW1Q1fpDCPV+SBXP/km7Q/3vw2e0QUmPqpXu4JuIvkARnVF6ucjjztLtm0Hy3lNm eGZdOeWJ0mm+eeO9UIMckZ+wxdTOF0uglO3Jk75UvvYM50FId3iS5AUzZqFNBP7FVL 1cYc60MY+o4zw== From: Jiaxun Yang To: linux-mips@vger.kernel.org Cc: Jiaxun Yang , Thomas Bogendoerfer , linux-kernel@vger.kernel.org Subject: [PATCH 1/2] MIPS: head.S: Always jump to kernel_entry at head of text Date: Wed, 27 May 2020 13:27:18 +0800 Message-Id: <20200527052721.366704-2-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.27.0.rc0 In-Reply-To: <20200527052721.366704-1-jiaxun.yang@flygoat.com> References: <20200527052721.366704-1-jiaxun.yang@flygoat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Buggy loaders like early version of PMON2000 sometimes ignore elf_entry and goto start of text directly. That would help with dealing with these loaders. Signed-off-by: Jiaxun Yang --- arch/mips/kernel/head.S | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/mips/kernel/head.S b/arch/mips/kernel/head.S index 3b02ffe46304..c7c2795837e7 100644 --- a/arch/mips/kernel/head.S +++ b/arch/mips/kernel/head.S @@ -69,7 +69,6 @@ EXPORT(_stext) -#ifdef CONFIG_BOOT_RAW /* * Give us a fighting chance of running if execution beings at the * kernel load address. This is needed because this platform does @@ -77,7 +76,6 @@ EXPORT(_stext) */ FEXPORT(__kernel_entry) j kernel_entry -#endif /* CONFIG_BOOT_RAW */ __REF -- 2.27.0.rc0