Received: by 10.223.164.202 with SMTP id h10csp131677wrb; Tue, 14 Nov 2017 19:14:33 -0800 (PST) X-Google-Smtp-Source: AGs4zMZTW/lf9w0RozXg+PY0jN6OkKnq5PFtj4BFI+1zl6lRkc+8sREha8QAqxfFQxkMVMfmLcku X-Received: by 10.99.127.25 with SMTP id a25mr10136281pgd.10.1510715673379; Tue, 14 Nov 2017 19:14:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510715673; cv=none; d=google.com; s=arc-20160816; b=Lma5LJDQPOA3inSvaVDXE+bLtXP1hGNGMaRVY6cxNlVXi2wR8uyLnS+ZfBguHP8MHr Vkshg5XdSwyRcTP71AdrcHCCw7I1F7GTAajKDTrshGH1bECBwwFnSSHF4GjS7CddPuJl I6HkkJDCZ9YkJ4pfZ79dXiK/Vz83bFnCvySDMXQCcpPgCTHs8nzj0pKdIZ9rZtsnK97f 66tmzum/KAPC5UUcfKrh3SZEJ/zK+iy1gBkwO2JBKjDiRlrdT9C+yey+OaRh9OCTmVZd bW+cnCoe3GCtmiwVAHcJLWEknGu3ud0iEe5ys/E519UzhI7atrD0wrZ/qcQHwsS4xSnF xK3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-signature :arc-authentication-results; bh=Djv1V5f/ckDgNRjLc2jFVyAExdqbYlB3knOkiblymCM=; b=L2ejGX6A6AIfq2Tno8nppiRlPhPzgfYrR63BAvmVLId5D1nIjoeHsWxpxWWFbDe2Of AgERxU1tCB1hpcsgWOB40XeQUtGECja2T5WKl6Ah3dupja1ZfYrTMuNQClWbbOYFMPZ4 E0xLjQbr6/U2tTEylFt0XsM7fAyXfEvYx7LEyqZcmKIOgcX9DQ10OjLA7zHTZOtcPDfT rjmr4qwkt9+DxCEpj4iDh4cFvPZH7thYckBTA1dMJXT5DkVwgsMLHT56FKFP10G0FZAS yVzZSvameXd4zGeVSqCzbBubqF4IS9yCf6bqvQXNrL/AEnY2rCsmZoY1jdCES+DmX4Eg lOUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=mail header.b=SbA0cVMb; dkim=pass header.i=@flygoat.com header.s=mail header.b=QaDbuN8R; 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 j1si3669086pld.136.2017.11.14.19.14.21; Tue, 14 Nov 2017 19:14:33 -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=SbA0cVMb; dkim=pass header.i=@flygoat.com header.s=mail header.b=QaDbuN8R; 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 S1757502AbdKODNG (ORCPT + 87 others); Tue, 14 Nov 2017 22:13:06 -0500 Received: from forward101j.mail.yandex.net ([5.45.198.241]:54805 "EHLO forward101j.mail.yandex.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753277AbdKODMw (ORCPT ); Tue, 14 Nov 2017 22:12:52 -0500 Received: from mxback3o.mail.yandex.net (mxback3o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::1d]) by forward101j.mail.yandex.net (Yandex) with ESMTP id B76781242958; Wed, 15 Nov 2017 06:12:50 +0300 (MSK) Received: from smtp1j.mail.yandex.net (smtp1j.mail.yandex.net [2a02:6b8:0:801::ab]) by mxback3o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id CSPtKkE6QG-Col4pfAN; Wed, 15 Nov 2017 06:12:50 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; s=mail; t=1510715570; bh=Djv1V5f/ckDgNRjLc2jFVyAExdqbYlB3knOkiblymCM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=SbA0cVMb9gJTdZCcfwGLo9IGvnvI/u7iRM0qGuw/tm1aBzZcVfUR+O7YW3+Qr+RSJ EJ0mr+WkuzJsVj+I+VQ2/fMBD74cR6E+QyhDOk4u8TPEihmcKNKgGFRjypGHEbN/PZ ZQ15akP9cugyPtOgRiiAsypu+tuZRcNIOw3NH8ms= Received: by smtp1j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id sPMPJaqN4J-Ckc4S2WO; Wed, 15 Nov 2017 06:12:49 +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=1510715569; bh=Djv1V5f/ckDgNRjLc2jFVyAExdqbYlB3knOkiblymCM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=QaDbuN8R0+22MxPuu8ryPJ9XTRYO+lKi9y8UVRGkHFHzGijwJb4MbPxhZiKzaOB/Q OnkUJuo44cU8hfib7LX1WnFciM1GmFBY1ed/zibt2oXROL2DuBAh/70M5Z+hKMzIln 5b7VDtYbPW+nfdiehrD2vt9LJM12uHh1hhjotwwI= Authentication-Results: smtp1j.mail.yandex.net; dkim=pass header.i=@flygoat.com From: Jiaxun Yang To: Ralf Baechle Cc: linux-mips@linux-mips.org, linux-kernel@vger.kernel.org, Jiaxun Yang Subject: [PATCH v3 1/4] MIPS: Lonngson64: Copy kernel command line from arcs_cmdline Date: Wed, 15 Nov 2017 11:11:52 +0800 Message-Id: <20171115031155.643-1-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20171112063617.26546-1-jiaxun.yang@flygoat.com> References: <20171112063617.26546-1-jiaxun.yang@flygoat.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since lemote-2f/marchtype.c need to get cmdline from loongson.h this patch simply copy kernel command line from arcs_cmdline to fix that issue. 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 1584175769277887758@xxx Wed Nov 15 23:15:43 +0000 2017 X-GM-THRID: 1584175769277887758 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread