Received: by 10.223.164.202 with SMTP id h10csp102583wrb; Wed, 29 Nov 2017 17:58:14 -0800 (PST) X-Google-Smtp-Source: AGs4zMaBRmpDf/AatZjH2WAZivluWZd6C4tjDu42QPemXKKP5UhLwURQehLRtnTMp3reFqZDTiLC X-Received: by 10.101.97.173 with SMTP id i13mr829104pgv.449.1512007094545; Wed, 29 Nov 2017 17:58:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512007094; cv=none; d=google.com; s=arc-20160816; b=pb3lOSS6yJpK8XJdWU0LV2lSSpKOGaN+nLR3YVZSwj6eXTlkVksGWFpfOjZlPrXbzZ JqFE5gwGMdfINZzDFY768Rym2p0xB3Ylh/tsw6GWTnsmFtqqHsKLYiv1ASL1mv82iLvx Ix9gBhjBb9A5hus61XEsJ24Xg50qmS5xrFqBW+2wp0phSEaAMS0rULGOmRNtgze7DK1C Nyv8YmfSXz+FvD4qkgFNRAMUugVQ00PVgKCPcJx8v5IKk9xTOyNS4mAMA6XzFn7iZ3Gb 9x02Z81viazhcVkdjeTuG0cgApF6M1+3OhizeM0hJOOGHssQawvZmaC0Mhvg6Dy6RLLy cIXw== 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:arc-authentication-results; bh=7QBoH7zVEKUAAKMjDfRnuAG0LT1t0pKzPhgHgtl1EH4=; b=Cwja2ghp/eCRuPslmu6ID3t4ZyUDhGtA2lgAaNxbHllnnm9Pe5NgDbJOAT00zo63uU qgugStRPNeq12Xc7zTUX8W2Z8fYxyII0jIXby87HwqC86zT8K3z26NfzEbuk+jvcVGKZ 0lnMp3dZ3jCInKuZDrnA8k1gxxUB8gJMovB7FEJciWzF81vflZRBwSU8sheFwmK/z10y t/0sAGAnFhuB05QX4cszb5t9N1SiDusJmJ993ed0kWE31KfPTF7ei412RETMpJyJCYz/ jACxJMDh/keez/g4zQJ4FXZai+CKdxHhAaQdjDGG9nzGwhOzUkSVcCRJNtxs/ZAPWI3B fj2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=w4L5utEb; 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 p1si2190615plb.661.2017.11.29.17.58.01; Wed, 29 Nov 2017 17:58:14 -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=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=w4L5utEb; 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 S1753609AbdK3Bzy (ORCPT + 99 others); Wed, 29 Nov 2017 20:55:54 -0500 Received: from mail-pf0-f194.google.com ([209.85.192.194]:44698 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753522AbdK3Bzr (ORCPT ); Wed, 29 Nov 2017 20:55:47 -0500 Received: by mail-pf0-f194.google.com with SMTP id m26so2421941pfj.11 for ; Wed, 29 Nov 2017 17:55:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lixom-net.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=7QBoH7zVEKUAAKMjDfRnuAG0LT1t0pKzPhgHgtl1EH4=; b=w4L5utEbzfsNdv2N3+AiJ689CnGQa7lYtheu59glSJyFKOqmJSEOjqeVMpFyAHjWUF b4Ms//TwVuQ7wsuQCHekELktZErcn2gQKhnjelG2I9s0eiMPK2cpwxPYeUmGx5yaLRet OL91+70E13y72Q4KHM7q5cGZz9dREcScqljufjny2aQvY2DRfgzgbE4Va5xCYQsgKK4H WU1W7YB52mgWD7VrTq9H9KuO7iZvvRrBT1w7CtCMNJpzzCSH8xcx1Ths3nPTNKBbndJI CJ0Igyl39WF+rjWugHqrHXK+STd1WY3mh3LcDF1RtziN05s1B+3Ggbfeuy8xo8VykD7U 6u3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=7QBoH7zVEKUAAKMjDfRnuAG0LT1t0pKzPhgHgtl1EH4=; b=CB/FmeZT7WLOsh2h9dp1difKF5Hw2UAraMIF0Sl+2YHMcPrqxT7Oj2DdrP6WnYwVCV O+oMKfKWBlOe4C6lS4jX0L91sTMNdwzX/2yy/Tmh44HzugVhsRwzTyDCPt2Si9xoVE4F z0wvuSq/ypZVkwBYmy3oa8ejd2BCJD6tyCOd37gxwPQQILvDwAoTU+fRh5nK9tqQkSrD EDm/2eBzMM/LGq9vjick2drRx6QuTIJWIVUdHggUAIKGv1D7GkMGSjJ+WBXlVhlalEmO b+j+UBvyLx033QbpyC7X0Q8OR+VQ1amujMLNWT0x1c5Oeg+hiS23UFKUMoDIoA7DWbPO Swjg== X-Gm-Message-State: AJaThX59fxb+m0u1ZOgZQDq4U4BkIL5nnH7ew3sPaCFBNiQk+s0EeY4U gv4oy9EPf5IO71mSiXiz29Eg8Q== X-Received: by 10.101.81.69 with SMTP id g5mr855804pgq.324.1512006946972; Wed, 29 Nov 2017 17:55:46 -0800 (PST) Received: from brutus.lixom.net (173-13-129-225-sfba.hfc.comcastbusiness.net. [173.13.129.225]) by smtp.gmail.com with ESMTPSA id l80sm5178177pfb.124.2017.11.29.17.55.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Nov 2017 17:55:45 -0800 (PST) From: Olof Johansson To: Palmer Dabbelt Cc: Albert Ou , patches@groups.riscv.org, linux-kernel@vger.kernel.org, Olof Johansson Subject: [PATCH 04/10] RISC-V: move empty_zero_page definition to C and export it Date: Wed, 29 Nov 2017 17:55:15 -0800 Message-Id: <20171130015521.1289-5-olof@lixom.net> X-Mailer: git-send-email 2.8.6 In-Reply-To: <20171130015521.1289-1-olof@lixom.net> References: <20171130015521.1289-1-olof@lixom.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Needed by some modules (exported by other architectures). Signed-off-by: Olof Johansson --- arch/riscv/kernel/head.S | 3 --- arch/riscv/kernel/setup.c | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/riscv/kernel/head.S b/arch/riscv/kernel/head.S index 76af908..78f670d 100644 --- a/arch/riscv/kernel/head.S +++ b/arch/riscv/kernel/head.S @@ -152,6 +152,3 @@ END(_start) __PAGE_ALIGNED_BSS /* Empty zero page */ .balign PAGE_SIZE -ENTRY(empty_zero_page) - .fill (empty_zero_page + PAGE_SIZE) - ., 1, 0x00 -END(empty_zero_page) diff --git a/arch/riscv/kernel/setup.c b/arch/riscv/kernel/setup.c index de7db11..4375375 100644 --- a/arch/riscv/kernel/setup.c +++ b/arch/riscv/kernel/setup.c @@ -60,6 +60,9 @@ static char __initdata builtin_cmdline[COMMAND_LINE_SIZE] = CONFIG_CMDLINE; unsigned long va_pa_offset; unsigned long pfn_base; +unsigned long empty_zero_page[PAGE_SIZE / sizeof(unsigned long)] __page_aligned_bss; +EXPORT_SYMBOL(empty_zero_page); + /* The lucky hart to first increment this variable will boot the other cores */ atomic_t hart_lottery; -- 2.8.6 From 1585312417777929215@xxx Tue Nov 28 12:22:16 +0000 2017 X-GM-THRID: 1585306505169833711 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread