Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1285348pxb; Fri, 21 Jan 2022 14:21:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJzf0fx5pNyh2JlurU9OLQ6A2v44ArDAlaqqF1zw+SKBPSo9N57kqhchgEAXqzx7D2ALiF/o X-Received: by 2002:a17:902:ce8b:b0:14a:ff2b:77b9 with SMTP id f11-20020a170902ce8b00b0014aff2b77b9mr5889237plg.132.1642803702502; Fri, 21 Jan 2022 14:21:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642803702; cv=none; d=google.com; s=arc-20160816; b=caiByASish/l8RKTgi7MtojZbWgWn80fPVMOs+JAqK9HrJ1MvK7MGn0cFNOmF8Hwsi rho1FyZ3uqZCS9hBJ2ab7ixKolNdZvEqUOVHBSsiqoKLkTBZZnygmoasV/g1LlLlbm/1 y37hvGranxmNJI+e0fy8OKMu9aUGDS8EJVo8XsEMPImeJfJgX2quDEnwGIRoCO/+6lRH FRwzKescZ4tT4qXkvlxyens+XFFys5fs1ElruMJxTIZTQUgH3x+DKc9GUPcXhuPZtbOt 5bALt+FTvS3M1pIT/B7W4jVhZMUt4t41YLdnMqXnZwEv5pFY36kCmbCR1vJErprV4JTf 1a6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=f5DSyw8Jktl2OVLrktO0AZ8z+S3qRtxlhEygciHsFM0=; b=oYefKpvbqN3Hxs3Ml0Q9VfXdrFkjQjf0fCTYxj8haFgTyBetICenvYrMkIz3ia7Gfs +YxAo0aDExsq5JQDB3OoJTQcPLqdmxGMYuHVRTwWlmPZP4lTBBOyeFr3HgOLVQnfIKk5 JNlPVTZsGA1QTg73rbrEa3ElSca2RoAOCIl2iateBX+NCKqcuCvvi2imtskoUVgAthk+ 1WEcnMN9zdCXP2WlhLE0XaG1UOJeUlwFG1Yc7Rr4rInoeTDGcjVF4UKsCJxX/6JyU6c+ yAMUWtusxNSvojS+ZJGGKLZPzO/3kJZR6azaPzzB0AwDdbi/IOVBIrUpF9gVdI9syi9j fn7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@ds0.me header.s=x header.b=vwaGUQdt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x13si10170624pge.184.2022.01.21.14.21.28; Fri, 21 Jan 2022 14:21:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=temperror (no key for signature) header.i=@ds0.me header.s=x header.b=vwaGUQdt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376758AbiATPjA (ORCPT + 99 others); Thu, 20 Jan 2022 10:39:00 -0500 Received: from mail-108-mta203.mxroute.com ([136.175.108.203]:46841 "EHLO mail-108-mta203.mxroute.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346434AbiATPi5 (ORCPT ); Thu, 20 Jan 2022 10:38:57 -0500 X-Greylist: delayed 305 seconds by postgrey-1.27 at vger.kernel.org; Thu, 20 Jan 2022 10:38:57 EST Received: from filter004.mxroute.com ([149.28.56.236] filter004.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta203.mxroute.com (ZoneMTA) with ESMTPSA id 17e781f48d9000bdf2.004 for (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256); Thu, 20 Jan 2022 15:33:43 +0000 X-Zone-Loop: 3d98f9efd6ccd63bc54141b42fd397e453021556aae9 X-Originating-IP: [149.28.56.236] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ds0.me; s=x ; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=f5DSyw8Jktl2OVLrktO0AZ8z+S3qRtxlhEygciHsFM0=; b=vwaGUQdtU23VDN98+q07TkVvD6 Xn85oBlpqKE6QsPksa1RTtD1jnxOZLJKpkkPFXw0cKyVly2WUOs5u5CvsQlXG8IGVJAx5dwgOBpXY ccFSGtMWfZqWvqDqe6ulPzihLeVzttDlZaEUuyeUTXenVjHh/99GOha1kiLJ06QWsuSiG+X/bp8O9 c1+6Upspv6NquhPdZmjFfUE62qBrHKV8T9eiSak9iiYPyx/j/XpU6xXO28wHtI9I5HwG1Tjuurgok WCUYLLkS/tZqTELl3mMtZ3tjNC4LpdBXv58vejcOEfKKrygaR+nXGfz21R/hrX+qZP/u0k24tbAn1 xPR+uqug==; From: Myrtle Shah To: linux-riscv@lists.infradead.org, paul.walmsley@sifive.com, palmer@dabbelt.com Cc: linux-kernel@vger.kernel.org Subject: [PATCH 2/2] riscv/mm: Add some missing XIP_FIXUPs Date: Thu, 20 Jan 2022 15:33:38 +0000 Message-Id: <20220120153338.4093003-3-gatecat@ds0.me> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220120153338.4093003-1-gatecat@ds0.me> References: <20220120153338.4093003-1-gatecat@ds0.me> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-AuthUser: dave@ds0.me X-Zone-Spam-Resolution: no action X-Zone-Spam-Status: No, score=5, required=15, tests=[ARC_NA=0, MID_CONTAINS_FROM=1, FROM_HAS_DN=0, RCPT_COUNT_THREE=0, R_MISSING_CHARSET=2.5, RCVD_COUNT_ZERO=0, FROM_EQ_ENVFROM=0, MIME_TRACE=0, BROKEN_CONTENT_TYPE=1.5, TO_DN_NONE=0, NEURAL_SPAM=0] Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Myrtle Shah --- arch/riscv/mm/init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/riscv/mm/init.c b/arch/riscv/mm/init.c index 0624c68331d8..eeafefd1c2b3 100644 --- a/arch/riscv/mm/init.c +++ b/arch/riscv/mm/init.c @@ -41,6 +41,7 @@ phys_addr_t phys_ram_base __ro_after_init; EXPORT_SYMBOL(phys_ram_base); #ifdef CONFIG_XIP_KERNEL +#define phys_ram_base (*(phys_addr_t *)XIP_FIXUP(&phys_ram_base)) extern char _xiprom[], _exiprom[], __data_loc; #endif @@ -248,6 +249,7 @@ pgd_t early_pg_dir[PTRS_PER_PGD] __initdata __aligned(PAGE_SIZE); static pmd_t __maybe_unused early_dtb_pmd[PTRS_PER_PMD] __initdata __aligned(PAGE_SIZE); #ifdef CONFIG_XIP_KERNEL +#define riscv_pfn_base (*(unsigned long *)XIP_FIXUP(&riscv_pfn_base)) #define trampoline_pg_dir ((pgd_t *)XIP_FIXUP(trampoline_pg_dir)) #define fixmap_pte ((pte_t *)XIP_FIXUP(fixmap_pte)) #define early_pg_dir ((pgd_t *)XIP_FIXUP(early_pg_dir)) -- 2.34.1