Message ID | 20190213080647.68204-3-anup.patel@wdc.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-riscv-bounces+patchwork-linux-riscv=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B124E1399 for <patchwork-linux-riscv@patchwork.kernel.org>; Wed, 13 Feb 2019 08:07:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A1EC42BEA5 for <patchwork-linux-riscv@patchwork.kernel.org>; Wed, 13 Feb 2019 08:07:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 95B7E2C8B9; Wed, 13 Feb 2019 08:07:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 425BC2BEA5 for <patchwork-linux-riscv@patchwork.kernel.org>; Wed, 13 Feb 2019 08:07:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:In-Reply-To:References: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=dI1iKPv1Rj9Fs0afOfot5FRJuLacjS5JSbHCOdT3TjI=; b=Y4/CoPWf7JmZmf hQJBZcshoaup97GoohCyn6V0ezer5888ync1XU32E5BaPBubsovsD93ntnjuhOOWDDlr9QOZUKnoo JpU2lI3rT1gvWDm78quekg1LnJiTkWsRhJCzd9GCDuHr85JWsah5C5kOaHbLyR75KhXLo96cbV2gt kpD5zpMAdq4o/rgB+2mrsdb+VNKaJUpsFhHHtsMbDeQnwoUoNnHG/OqVkLMUxvB5OKJJlJWz1tDP0 yQDX9zy4404jctHCDQjU4rkt2kxLCy4VhNi3CRAncClhvgGtyP0DtGcd8djBB92UEamPdm+d1i9EV dLB88TR2yLKlBYGRhgDw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gtpZt-0000Xs-Fc; Wed, 13 Feb 2019 08:07:33 +0000 Received: from esa5.hgst.iphmx.com ([216.71.153.144]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gtpZp-0000Wv-Rx for linux-riscv@lists.infradead.org; Wed, 13 Feb 2019 08:07:31 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1550045250; x=1581581250; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=h25QTCPdlhMfqtz+zmztEhyRxhdRVXagsuYHINwV8lo=; b=qTFD7VPK8DLSDPGXkUphws01FKiVCNB+7kE4FOz9tqPUNeSumZWjICLN ZY9igs39rMizRtuj4zBZZFnaKV+KhH/cI6Szgc1Zit0vRQRTi9Zwf4j++ urflIyIcxgOLjdcTClDUn+MRbbadVJmCdCyTUJ0IKhVN0G95T9c0N2UtP HHrOQknk5wB0rRrUHFnQGcphHwlj9DZnLjTxfObCtRuAkJ6RZYkC13c3q sWMKYxJ+zXHTQ/URh3ChbfQxhbTfcFAgQJKZ4IHM2uB4wdjkBwkjAxIVV wi6GlZoFb9s6h0y5b6jBfnP+LJ2CU9e9oRbzrVedKE3/ldIE5WuAMl6pf w==; X-IronPort-AV: E=Sophos;i="5.58,365,1544457600"; d="scan'208";a="102402297" Received: from mail-co1nam05lp2053.outbound.protection.outlook.com (HELO NAM05-CO1-obe.outbound.protection.outlook.com) ([104.47.48.53]) by ob1.hgst.iphmx.com with ESMTP; 13 Feb 2019 16:07:28 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector1-wdc-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=I8qCA2Iv5UJ1d1yEkinn+T39/F/zEuxMl5ljAL1ZXGM=; b=Hfj0Twx0LROkyOranho1twaEmTrd6cXIWErC1TRuA8KgVJpYpGZiR3jAFR/Iui1cIDTR4/jWrSkm/ER3nbBsqoaE2T12Z0JeAUjk36vPBkvN86BhBaNLn4SgBraqnun/csa5U5xnsGcrxqzv2rXU0BliTxNTMVEcmJKrvA4D9dc= Received: from DM6PR04MB6059.namprd04.prod.outlook.com (20.178.226.89) by DM6PR04MB5993.namprd04.prod.outlook.com (20.178.225.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1622.16; Wed, 13 Feb 2019 08:07:26 +0000 Received: from DM6PR04MB6059.namprd04.prod.outlook.com ([fe80::d006:5be7:c3f:ba6c]) by DM6PR04MB6059.namprd04.prod.outlook.com ([fe80::d006:5be7:c3f:ba6c%2]) with mapi id 15.20.1601.023; Wed, 13 Feb 2019 08:07:26 +0000 From: Anup Patel <Anup.Patel@wdc.com> To: Palmer Dabbelt <palmer@sifive.com>, Albert Ou <aou@eecs.berkeley.edu> Subject: [PATCH v5 2/6] RISC-V: Setup init_mm before parse_early_param() Thread-Topic: [PATCH v5 2/6] RISC-V: Setup init_mm before parse_early_param() Thread-Index: AQHUw3MojzWUPEGlyUOTNqeH6ojcbA== Date: Wed, 13 Feb 2019 08:07:26 +0000 Message-ID: <20190213080647.68204-3-anup.patel@wdc.com> References: <20190213080647.68204-1-anup.patel@wdc.com> In-Reply-To: <20190213080647.68204-1-anup.patel@wdc.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: MA1PR01CA0140.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:35::34) To DM6PR04MB6059.namprd04.prod.outlook.com (2603:10b6:5:129::25) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Anup.Patel@wdc.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.1 x-originating-ip: [129.253.179.161] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 2016079c-fd96-483f-dbb5-08d6918a4a4a x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605077)(4618075)(2017052603328)(7153060)(7193020); SRVR:DM6PR04MB5993; x-ms-traffictypediagnostic: DM6PR04MB5993: wdcipoutbound: EOP-TRUE x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1; DM6PR04MB5993; 23:dRkXvadU4amHWoDZW6zTrM5nkYAmyD6a+4lxOkc?= =?iso-8859-1?q?hbemWWGUfdldLXV?= =?iso-8859-1?q?uJ6T0og0cO5M6raytIfKrscVhui/YhfDinTw13ZHB9vkaF9yg8cQZG5sGA1O?= =?iso-8859-1?q?Clq6aQqba4NpO8M9YZwng3zIdRJLl4scbqnWvrOPMOc7NkCjoMdHQxfqpwAy?= =?iso-8859-1?q?atsjzjZWjclhAcwvPghieQ/JCI1ZY00kJG7k2frS4uhf4X3gNUmmH0Ji63lr?= =?iso-8859-1?q?BY6SEPJOez8d/T+kiUixT6GG09+HhIDpl6KAytRVTkwmEQybFncPZYFnOaOG?= =?iso-8859-1?q?gMyi2KsUEjPtrogD8vAs4r8SS2ZjEFqwU7MBsV9nPSZfBVZ1IWEpCw5LeWCL?= =?iso-8859-1?q?tJ94r23YCyMrenJcpjYLtYph6gRmHO8U39pz0u3b2hz1LDj1WxvdLXeDQFPj?= =?iso-8859-1?q?GO7MI13O6J/xxMfLeT/r89xuHgah3orukyaj8IXdCKdXEUvMzj3/meyxpUWN?= =?iso-8859-1?q?HdoqnpD1Gkl7Wsx700jwKu5KiwpO+tGRAYEoWI6LwjRv91V06Mj8k6eloOvg?= =?iso-8859-1?q?rw349qey2syds0qcUBqheB8pQv89To8vVKSvOrW5AqeYa5SOq+aoDIVHR7yw?= =?iso-8859-1?q?tMBpHHqCT0CifTIzLfjOBLecP6dwZGsmfBMzpfYW1onn6y00N2VfEdSjpONH?= =?iso-8859-1?q?hzt9grAQBXTGB07Kf88S383dy24Qamkw+tBQe7R+Ee2BdNGyMZ9ROXVlQBvK?= =?iso-8859-1?q?h38yKNaU6rrSiz0B8zdAebwbWXSv4hrCv9qeomzwCxyvInK+tbEvZ17FyNAw?= =?iso-8859-1?q?ZTwmNNtO5mdInIuEeyYWGZ6oD3Fjfek1umtPz2p0AIU8PfZihYqtqdH08775?= =?iso-8859-1?q?RSIFiwjfcdWJV3CPkdsfQuT5fN4Tu1HNt3MRQSb+1NmQX+uJ2FEaMCT/UDql?= =?iso-8859-1?q?Tuvo23ZtI8onBABi5cqxGWAHrXkFSKOa7dxT58t2Kfv2JZfU0zRrs/QBO8uU?= =?iso-8859-1?q?w/D2zWbs+StO+U/a408X5P2Sg1unD0i9UP3zIQRszlrTDlyEyfaYLq39Clya?= =?iso-8859-1?q?zhGXLmWN3VapQI0VFB/TRHmZwIEzA8/d8/TqJuVekaLlfr56tVWivxUFMRKm?= =?iso-8859-1?q?n49tv9+4GGUT1xfSi3RWeg4kTFM8fysq/GRL9x5SfSVzEm3WrSI4Oeeoy9nE?= =?iso-8859-1?q?//4dU6xIKiwM1nu+WEgzrDtseu96zguSRLFMu1XHX0/IYQ7kGBYu8sZf7dtS?= =?iso-8859-1?q?dQ8L4+ULiapBfdkaBzQwC5G2TC9NYsSbZ0e84K0N8FJeHpVlZ5qCvsuCqeOw?= =?iso-8859-1?q?tNw4s=3D?= x-microsoft-antispam-prvs: <DM6PR04MB5993337677AB8DF74AAF00988D660@DM6PR04MB5993.namprd04.prod.outlook.com> x-forefront-prvs: 094700CA91 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(39860400002)(396003)(376002)(346002)(136003)(366004)(199004)(189003)(6512007)(99286004)(53936002)(50226002)(386003)(6116002)(52116002)(105586002)(3846002)(106356001)(76176011)(110136005)(6506007)(25786009)(256004)(54906003)(86362001)(6436002)(316002)(2171002)(36756003)(6486002)(97736004)(4326008)(81166006)(66066001)(8676002)(68736007)(102836004)(72206003)(476003)(2906002)(11346002)(446003)(81156014)(1076003)(14454004)(71200400001)(71190400001)(8936002)(7736002)(305945005)(26005)(186003)(486006)(2616005)(478600001)(44832011); DIR:OUT; SFP:1102; SCL:1; SRVR:DM6PR04MB5993; H:DM6PR04MB6059.namprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: eNtj9ZWJ7WDE3BoOBqH9xLtvX6qM93cAKDhAxgsAlhvzVTDsBIht7+lV3vq30vD8ophFL2g6yNzOvmaReV9ZGtd+D6cNVEN8ejQP+qHlS1kVtAP6My7m+ChHQgBRPgOzXdA7VzWOSbaVbheYh2OdFCdMj74tidW6OvS1KJF2o8qWdJx/Qb/t72X3sdfH9H6g3TVC7EHn6hOUg+dqG1cWjsrmJjYZ/eBrVxFSKsDWT14eM7CgVXLvVB3RVdVrCAUl7IP1TtK7FcYBM8xdweUUzisWVkc4nKQbmxfquYVTKEdoP5eG46/QajKNe+enb7cnEyne7MfUEcwLvWZ5fBXMlJ0JzEBZIFCR/2yDyWfh0VwXeAS1WbiV+m+jwSwDC7E9CzF1pmx4qxf2q5kckOLcloLL9OL2dGmUdQ+F28oep1g= MIME-Version: 1.0 X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2016079c-fd96-483f-dbb5-08d6918a4a4a X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Feb 2019 08:07:22.6696 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR04MB5993 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190213_000730_014916_CE36708A X-CRM114-Status: GOOD ( 13.29 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-riscv.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-riscv>, <mailto:linux-riscv-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-riscv/> List-Post: <mailto:linux-riscv@lists.infradead.org> List-Help: <mailto:linux-riscv-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-riscv>, <mailto:linux-riscv-request@lists.infradead.org?subject=subscribe> Cc: Anup Patel <Anup.Patel@wdc.com>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, Mike Rapoport <rppt@linux.ibm.com>, Christoph Hellwig <hch@infradead.org>, Atish Patra <Atish.Patra@wdc.com>, Paul Walmsley <paul.walmsley@sifive.com>, "linux-riscv@lists.infradead.org" <linux-riscv@lists.infradead.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" <linux-riscv-bounces@lists.infradead.org> Errors-To: linux-riscv-bounces+patchwork-linux-riscv=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
Fixmap support and MM cleanups
|
expand
|
diff --git a/arch/riscv/kernel/setup.c b/arch/riscv/kernel/setup.c index 36f60b4d2147..9e6395b7d409 100644 --- a/arch/riscv/kernel/setup.c +++ b/arch/riscv/kernel/setup.c @@ -208,15 +208,15 @@ static void __init setup_bootmem(void) void __init setup_arch(char **cmdline_p) { - *cmdline_p = boot_command_line; - - parse_early_param(); - init_mm.start_code = (unsigned long) _stext; init_mm.end_code = (unsigned long) _etext; init_mm.end_data = (unsigned long) _edata; init_mm.brk = (unsigned long) _end; + *cmdline_p = boot_command_line; + + parse_early_param(); + setup_bootmem(); paging_init(); unflatten_device_tree(); @@ -235,4 +235,3 @@ void __init setup_arch(char **cmdline_p) riscv_fill_hwcap(); } -