Received: by 10.223.164.202 with SMTP id h10csp2010647wrb; Sat, 11 Nov 2017 22:45:36 -0800 (PST) X-Google-Smtp-Source: AGs4zMbRajmWW9ILv7bO16G8OhDTpFVhmG+LFs0OhEyCeC1+aucCEjvsd1njBDMPvGXqGqOsFDjz X-Received: by 10.99.127.14 with SMTP id a14mr984745pgd.315.1510469135967; Sat, 11 Nov 2017 22:45:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510469135; cv=none; d=google.com; s=arc-20160816; b=NKobiCpUDhfSu1KG4RsFhvPGPsboBV2uMkGtlFweESEXER+27HcjyDzo5NgVQCdNuW gZjM2c/cR53ps12Fg2xKLeX1/3E/YE3qblKqz9kLlixEfTkIVzJs+zub+jC/MoukBbsI 6QvPiWfM0eef0glWxeKUyAhC2YLwb/zf9zFbn7BWgfAMG3Bp6er5bw1K2raDHYjY90P6 Rq3dUuYlwjJhCeAQXXfBmfT2m6Va0Q77hDNaH/E8gDu2mQl4RSPbWlEQBRobk/EFEja2 FiyFEv3oYe+C4xuRhSMZYAbAadXEmr9kguyXi7zor8SkFDOvOJlPHoUHi8VOmbdC2doq sjxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature:arc-authentication-results; bh=u2a71OzCFWDKUMsYaCqUnWzZxTqvAA+o7X+WvHy2bRs=; b=BaPsF+TzFLAfqC/64BzIX03/k9+/Ql0/LRAkmm90O0Z4kBhBt/JfSDnGcSNbWN06wc m1fu/zMdzsS8pTh4ruXAj5uGMKapJ0Z1JZEv9OYgDrbBliFW7L/y82FLMd/81jZ3S0bA cycG7axIYe9GPTJo6ODxJJwNzNZGiGYzgzCa4jpdUPzNIQG6PpqJxW3Dte8cDIIbylGR Er0k1Q2XGZY4ib4X6ilXEB70QFtavMALHitlHVQCWqEBJ6F8w7eMNY7VWmTGaU8YDvFj XT/Tw0g57GxglbHLJpq8k7CMT7fwppoVolOOx2YR/FGOjhEq5C67o/x5Y2nCpNXMTD2C XrPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=mail header.b=EYC0Spw4; dkim=pass header.i=@flygoat.com header.s=mail header.b=YNsqavzE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r76si2165276pfb.324.2017.11.11.22.45.24; Sat, 11 Nov 2017 22:45:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@flygoat.com header.s=mail header.b=EYC0Spw4; dkim=pass header.i=@flygoat.com header.s=mail header.b=YNsqavzE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752805AbdKLGod (ORCPT + 87 others); Sun, 12 Nov 2017 01:44:33 -0500 Received: from forward101p.mail.yandex.net ([77.88.28.101]:41949 "EHLO forward101p.mail.yandex.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750855AbdKLGob (ORCPT ); Sun, 12 Nov 2017 01:44:31 -0500 X-Greylist: delayed 457 seconds by postgrey-1.27 at vger.kernel.org; Sun, 12 Nov 2017 01:44:30 EST Received: from mxback8j.mail.yandex.net (mxback8j.mail.yandex.net [IPv6:2a02:6b8:0:1619::111]) by forward101p.mail.yandex.net (Yandex) with ESMTP id E60AF6A8213C; Sun, 12 Nov 2017 09:36:51 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback8j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id pcjraMbhqt-apo8SaHp; Sun, 12 Nov 2017 09:36:51 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; s=mail; t=1510468611; bh=u2a71OzCFWDKUMsYaCqUnWzZxTqvAA+o7X+WvHy2bRs=; h=From:To:Cc:Subject:Date:Message-Id; b=EYC0Spw4jHM56bdaNq1XP5I2NP6RxjSrBbJYJpH5Bk42x77R1cRG3MBzx4KnNgSye NWbm2CDhWlcu7HWmVm5Z/s1RDQMRnyNqYlcCHizR2pHKmyb5S0yLRuMl+4gQyyVOXo Pz2NVaCUI7J8raQ2gP8r+ZrVjRdOQOxyWHYNzgc8= Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 0pMwdlaAMA-amZWoixv; Sun, 12 Nov 2017 09:36:50 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; s=mail; t=1510468610; bh=u2a71OzCFWDKUMsYaCqUnWzZxTqvAA+o7X+WvHy2bRs=; h=From:To:Cc:Subject:Date:Message-Id; b=YNsqavzEQUEaQKcwOX8baGsPXDL+jjQe57O1Toxa4sUT49VgOiRCDXFrhnDD/T8e2 3pKgssH35lGFl4N1bHKUeMFiBSbhBMI5QD95CWiizxq2PasG9HSJj3NOUcqBUgRj5B 3vhaQ1OC7+tYD/gmrjLpkLb3e/oTFbe4aGgcUm9w= Authentication-Results: smtp1p.mail.yandex.net; dkim=pass header.i=@flygoat.com From: jiaxun.yang@flygoat.com To: ralf@linux-mips.org Cc: linux-mips@linux-mips.org, linux-kernel@vger.kernel.org, Jiaxun Yang Subject: [PATCH 1/4] MIPS: Lonngson64: Copy kernel command line from arcs_cmdline Since lemte-2f/marchtype.c need to get cmdline from loongson.h this patch simply copy kernel command line from arcs_cmdline to fix that issue Date: Sun, 12 Nov 2017 14:36:14 +0800 Message-Id: <20171112063617.26546-1-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.14.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jiaxun Yang Signed-off-by: Jiaxun Yang --- arch/mips/include/asm/mach-loongson64/loongson.h | 6 ++++++ arch/mips/loongson64/common/cmdline.c | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/arch/mips/include/asm/mach-loongson64/loongson.h b/arch/mips/include/asm/mach-loongson64/loongson.h index c68c0cc879c6..1edf3a484e6a 100644 --- a/arch/mips/include/asm/mach-loongson64/loongson.h +++ b/arch/mips/include/asm/mach-loongson64/loongson.h @@ -45,6 +45,12 @@ static inline void prom_init_uart_base(void) #endif } +/* + * Copy kernel command line from arcs_cmdline + */ +#include +extern char loongson_cmdline[COMMAND_LINE_SIZE]; + /* irq operation functions */ extern void bonito_irqdispatch(void); extern void __init bonito_irq_init(void); diff --git a/arch/mips/loongson64/common/cmdline.c b/arch/mips/loongson64/common/cmdline.c index 01fbed137028..49e172184e15 100644 --- a/arch/mips/loongson64/common/cmdline.c +++ b/arch/mips/loongson64/common/cmdline.c @@ -21,6 +21,11 @@ #include +/* the kernel command line copied from arcs_cmdline */ +#include +char loongson_cmdline[COMMAND_LINE_SIZE]; +EXPORT_SYMBOL(loongson_cmdline); + void __init prom_init_cmdline(void) { int prom_argc; @@ -45,4 +50,6 @@ void __init prom_init_cmdline(void) } prom_init_machtype(); + /* copy arcs_cmdline into loongson_cmdline */ + strncpy(loongson_cmdline, arcs_cmdline, COMMAND_LINE_SIZE); } -- 2.14.1 From 1584038684803319789@xxx Tue Nov 14 10:56:49 +0000 2017 X-GM-THRID: 1584023727851769659 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread