Message ID | 20181205164145.24568-4-steve.capper@arm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <owner-linux-mm@kvack.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 1347413BB for <patchwork-linux-mm@patchwork.kernel.org>; Wed, 5 Dec 2018 16:42:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 026A82DDB9 for <patchwork-linux-mm@patchwork.kernel.org>; Wed, 5 Dec 2018 16:42:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 008572DE0E; Wed, 5 Dec 2018 16:42:08 +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=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8FC6B2DE00 for <patchwork-linux-mm@patchwork.kernel.org>; Wed, 5 Dec 2018 16:42:08 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A41976B754C; Wed, 5 Dec 2018 11:42:06 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 9A53C6B754D; Wed, 5 Dec 2018 11:42:06 -0500 (EST) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7A6C46B754E; Wed, 5 Dec 2018 11:42:06 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-oi1-f200.google.com (mail-oi1-f200.google.com [209.85.167.200]) by kanga.kvack.org (Postfix) with ESMTP id 596B96B754C for <linux-mm@kvack.org>; Wed, 5 Dec 2018 11:42:06 -0500 (EST) Received: by mail-oi1-f200.google.com with SMTP id r82so12783430oie.14 for <linux-mm@kvack.org>; Wed, 05 Dec 2018 08:42:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=ym97/tP6J2zubdqpy4pD5UshmSnQ3v6bkb87/PGhIaA=; b=IGwPzMRN0LRAB5HxA+80r7HSXeRiCNnd6LImzVLy8zR+d0CppQMCjta2Pj6md/uRsH tM6d0THyN51uSLIfXL+lZKLeicD64+MKQdcuzKqQZnCq5QDqtb3l9FI665NRGAk6UDS+ Et1LUTv8R4mwd0ZVfT7ZMaphDJRst5beYKDfINof9txXaWy4YkM+lcI6OlkXDl5rsb/v A7IWEEayPf1VSjtp0us2w/2JGMlZZbvyOjyOEBeYiHOAYRoDDuTfE1hjkNDo48Dd24Hw N06ynPs54j9UBeFJdjQG2UwK9ga0nRnG4FOQGBTXcRxUJ7HEgglcDsfVA16uFZiCjDN5 w+1A== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of steve.capper@arm.com designates 217.140.101.70 as permitted sender) smtp.mailfrom=steve.capper@arm.com X-Gm-Message-State: AA+aEWYimEh1D5bONXCVr1SMO9zkPJqitzZbeSxxkpp/sprLRFnzkdUA IlOmmEdhDYN9U1v88rr++ykx5vnKHJjd4sK2DD6C4ZAt2frsTiThX6brLhNoM0dANRZ5VikEgru j5MWdJT+oBO4Sy04Oye/EONoV3b6W2qKtDzfsOnMhmMRPM6ZDxfWSal4Yz6n92EnrtQ== X-Received: by 2002:a9d:4e06:: with SMTP id p6mr16997483otf.73.1544028126101; Wed, 05 Dec 2018 08:42:06 -0800 (PST) X-Google-Smtp-Source: AFSGD/XIsTBPIrcI71Q8YehGKf2ZXChfraCzSblhygzO/T4U8xorkrpAdLYmd7QzI+D/XCEE8rtB X-Received: by 2002:a9d:4e06:: with SMTP id p6mr16997450otf.73.1544028125282; Wed, 05 Dec 2018 08:42:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544028125; cv=none; d=google.com; s=arc-20160816; b=VpvcaCVpQV0NfSusL0z5qYAakLm5+Z8qYGr+fIFOu9ptMa2SN3qyqG0Njem18luJDb /au1VYPMWMaGfHwiNAgtJ97gKfmreca3NjsLnNzhhn3g42fu2vFjKFrZfV9rWC6bgO5M RxnUurI8EJ3myd7vZlyofMU9Sh6XCzrYvmZq1rlyAs9xApvoXKSiagU2A2nKiCwBHE4m 1dvqCP0o1DVXwsE8wAPpZH78wmfejdBMNQHbR2usg2S6iVDZpGq1Fncr3nLBqX5eGHuJ etJh1y7GaDe5kKzivdZh5thAxpC8vxyCDMV2C8EKtE6KiTIf8FouBlJyCbjN8UKMIE3b K+0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=ym97/tP6J2zubdqpy4pD5UshmSnQ3v6bkb87/PGhIaA=; b=fA/teMdJsHfnuFHf43SrnlH0C6dnMP6TWBRQH4oB851efpJ/poTJXIN7jN/doJ1rmX 7k8wUXHuaD7ptUTmEaRju9G938SQwqlN0muYM7JwYlq1w7bzMyWgIbb+TVEkfSgId0pk ZwbfYDI7I5uC9z6kuWt4Mt1uzh5hOgRxEB4rjyZEufN2Q2EBqB9Cc3Nc+lha/9O8Cdhy qzKVa9+X2AXIRs99UVssG76mGWYcbp3UsQjnTIxWcI+dNPElaTJ1YTBpbzAMJe2jXR32 3xOc+Lmr+40Gj4aGuIdPFbQlIc5iry8JyDGw/A3TOjXA1vLLAd+UC0TnQ5ShDj2xIYTE Vq0g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of steve.capper@arm.com designates 217.140.101.70 as permitted sender) smtp.mailfrom=steve.capper@arm.com Received: from foss.arm.com (foss.arm.com. [217.140.101.70]) by mx.google.com with ESMTP id y8si11921497otb.143.2018.12.05.08.42.05 for <linux-mm@kvack.org>; Wed, 05 Dec 2018 08:42:05 -0800 (PST) Received-SPF: pass (google.com: domain of steve.capper@arm.com designates 217.140.101.70 as permitted sender) client-ip=217.140.101.70; Authentication-Results: mx.google.com; spf=pass (google.com: domain of steve.capper@arm.com designates 217.140.101.70 as permitted sender) smtp.mailfrom=steve.capper@arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A898C1682; Wed, 5 Dec 2018 08:42:04 -0800 (PST) Received: from capper-debian.emea.arm.com (C02R32KKFVH8.manchester.arm.com [10.32.102.139]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 63BC33F5AF; Wed, 5 Dec 2018 08:42:03 -0800 (PST) From: Steve Capper <steve.capper@arm.com> To: linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org Cc: catalin.marinas@arm.com, will.deacon@arm.com, ard.biesheuvel@linaro.org, jcm@redhat.com, Steve Capper <steve.capper@arm.com> Subject: [PATCH V4 3/6] arm64: mm: Define arch_get_mmap_end, arch_get_mmap_base Date: Wed, 5 Dec 2018 16:41:42 +0000 Message-Id: <20181205164145.24568-4-steve.capper@arm.com> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181205164145.24568-1-steve.capper@arm.com> References: <20181205164145.24568-1-steve.capper@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
52-bit userspace VAs
|
expand
|
diff --git a/arch/arm64/include/asm/processor.h b/arch/arm64/include/asm/processor.h index 50586ca6bacb..fe95fd8b065e 100644 --- a/arch/arm64/include/asm/processor.h +++ b/arch/arm64/include/asm/processor.h @@ -72,6 +72,13 @@ #define STACK_TOP STACK_TOP_MAX #endif /* CONFIG_COMPAT */ +#define arch_get_mmap_end(addr) ((addr > DEFAULT_MAP_WINDOW) ? TASK_SIZE :\ + DEFAULT_MAP_WINDOW) + +#define arch_get_mmap_base(addr, base) ((addr > DEFAULT_MAP_WINDOW) ? \ + base + TASK_SIZE - DEFAULT_MAP_WINDOW :\ + base) + extern phys_addr_t arm64_dma_phys_limit; #define ARCH_LOW_ADDRESS_LIMIT (arm64_dma_phys_limit - 1)