Received: by 10.223.164.202 with SMTP id h10csp238798wrb; Mon, 13 Nov 2017 17:35:35 -0800 (PST) X-Google-Smtp-Source: AGs4zMb7fuMDjBePA4SKB62fjTzzNHRi4ev80Mj1UY6CrYcfKiHB/Jvk8zanzfUCjBBn3FBXdEno X-Received: by 10.101.90.193 with SMTP id d1mr10441271pgt.423.1510623335050; Mon, 13 Nov 2017 17:35:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510623335; cv=none; d=google.com; s=arc-20160816; b=YtGU2l+r9RexJRKV0uuSwWylwtkKliWDAJJBUa0SDzXsljmdn5swyerU5WI9fH0Ola VQbfdQ5EYSqAhB1nelyP4KW2r7eNi+LJL8f79JHJfpuYlQ7WbAvQCbRLIdTefxZPIF4K IuVVqEhsJqE+7KrJYWUCWVLpBdurhDD6KxauWSGvqbIqrO8AdFRFMby3GcoSwP6PUsDe onNUSos/lAnQNH5tKhPP9FHrglJx9a8nnTC4DmzSeTGBhp8rhh6NWuokC/jZXQRcsS8I Z4DcwSUV0wDObYp/ulo5NZDQPG4UyEtnJKCMnSsRKgsqE6bTvZIH+8zUYxGLCcY6OBw2 Fa1g== 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=RHohLWrIj431ruRKQuaOKafDRUi8dbu8FT4pvjo8kUc=; b=lzW/FnriDylyXOh0imTeu2yUvRRCCtfojIaQKdDYnx1f4+nu19SInFCoYcxn6ZO83t M0D+A225l8u1cKk2t6ZHRFVmSajTVL31L7mW9qcrLsAgCKYqvg13ObNbNCulT/NfDJZD dRQzXbiz7niRS9mV/zMvDovF8FedaAz417752nH2zBd2WQ43GlELBFCn4dOwiRKI24wX HMkUUS5AJh5mYrTQ4Szip/Ye87x9j2lCsTU1BjG3kgkek2dOvr8NBFwSGGMk4DLp54uN WHxAWgjjwDoGbXyhfi3kc61yrxg1S6riBRo8RK+Wo+TXPjBqjyrr45e/u2fvqobtYpXD 8JKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=mail header.b=gQ4M9jwy; dkim=pass header.i=@flygoat.com header.s=mail header.b=MEhy7LoM; 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 h3si16703420pfk.280.2017.11.13.17.35.22; Mon, 13 Nov 2017 17:35: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=gQ4M9jwy; dkim=pass header.i=@flygoat.com header.s=mail header.b=MEhy7LoM; 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 S1751799AbdKNBer (ORCPT + 89 others); Mon, 13 Nov 2017 20:34:47 -0500 Received: from forward104o.mail.yandex.net ([37.140.190.179]:44679 "EHLO forward104o.mail.yandex.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750779AbdKNBeq (ORCPT ); Mon, 13 Nov 2017 20:34:46 -0500 Received: from mxback5g.mail.yandex.net (mxback5g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:166]) by forward104o.mail.yandex.net (Yandex) with ESMTP id DF2B1701B73; Tue, 14 Nov 2017 04:27:25 +0300 (MSK) Received: from smtp4j.mail.yandex.net (smtp4j.mail.yandex.net [2a02:6b8:0:1619::15:6]) by mxback5g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id GYgZpyeWrS-RPseti9N; Tue, 14 Nov 2017 04:27:25 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; s=mail; t=1510622845; bh=RHohLWrIj431ruRKQuaOKafDRUi8dbu8FT4pvjo8kUc=; h=From:To:Cc:Subject:Date:Message-Id; b=gQ4M9jwy8186tSywwytL6Is1MyR63GyqvmCvz2FhUTz1YBka0AwgO4pnbxvR5KehT 9rgX+wLGZ6avbg7u4dhoIKSvmFdgBMuA3coCwibRi9Rfb/DQbs5S5KOGp+c9F3E9MZ +GJt2AwPS92IbCOgnr0rtg6ISPt496eT/aXE3VnE= Received: by smtp4j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 7l823DlZ0a-RDhC4fGh; Tue, 14 Nov 2017 04:27:17 +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=1510622844; bh=RHohLWrIj431ruRKQuaOKafDRUi8dbu8FT4pvjo8kUc=; h=From:To:Cc:Subject:Date:Message-Id; b=MEhy7LoMyz1H4lb+i9L73X622RRnfSPH55uEj3LFz9PeZMxNmwTDUAhlfyU7+wZGY 2GUBW66JzdqiPadoO+5jxZQ5ftjQg/unTDR/zVRqddCZGibOj2CmmTwVpBQhR7Ms5D R4GV7QAjDYVstUzm31MTRCa0hBRm3Q9hRJgPROYY= Authentication-Results: smtp4j.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 v2 1/4] MIPS: Lonngson64: Copy kernel command line from arcs_cmdline Date: Tue, 14 Nov 2017 09:26:46 +0800 Message-Id: <20171114012649.29625-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 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 1584137174998210665@xxx Wed Nov 15 13:02:17 +0000 2017 X-GM-THRID: 1584087831927022735 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread