Message ID | 20181206225042.11548-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 3E45A109C for <patchwork-linux-mm@patchwork.kernel.org>; Thu, 6 Dec 2018 22:51:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 311512ED9F for <patchwork-linux-mm@patchwork.kernel.org>; Thu, 6 Dec 2018 22:51:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2F28D2F032; Thu, 6 Dec 2018 22:51:09 +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 BC9412F045 for <patchwork-linux-mm@patchwork.kernel.org>; Thu, 6 Dec 2018 22:51:08 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 408F26B7CB5; Thu, 6 Dec 2018 17:51:07 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 3912E6B7CCC; Thu, 6 Dec 2018 17:51:07 -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 2831A6B7CCD; Thu, 6 Dec 2018 17:51:07 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-oi1-f199.google.com (mail-oi1-f199.google.com [209.85.167.199]) by kanga.kvack.org (Postfix) with ESMTP id 014446B7CB5 for <linux-mm@kvack.org>; Thu, 6 Dec 2018 17:51:07 -0500 (EST) Received: by mail-oi1-f199.google.com with SMTP id t184so949889oih.22 for <linux-mm@kvack.org>; Thu, 06 Dec 2018 14:51: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=NFstfFiSJY9WxKxdTkOz8yD345j1J35uvKDK4aEBExrEJ8a3ZLJ8vF2zVckrNOJU+I hQgl+s0p9MBjZ5lWqs49lBfcy8q0rQYTAhha1YG+rLh7MuJzoXWsePIXMkJ/CvhDe6NP zcOwaiD16FZy0PKBSl/0Vf7VM5rFtCMAUrHwEUe4eQbWgdiBU78Snwxhv9xYwa1cPICT VFu+TEl02cZVLA/HB7oUfvqngn4dLdq6RS2IRuQa8dJZWJ/rSLgUiOaDTvo6u31SOiRp KRf7ynlXnAxxhw/Jf8hHmXUJLeVj9JLkr4WWEdrLPmjB/Qg2ogue/53J+LgRBHSNgP87 osQg== 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+aEWZrXIUTZt+qYYK6nli7RG9dgGeFa1GTvqe2Ohgdxt/Ul0cTf6by 6kUyDUq3pfetBbArHC9rqI920oSewRdevKgLNwyVaR4bQDZY1hYUqFPWwcCNqNnt6ofPodi6odM l2Y6a3mntb6be3JNeZY4+PNIAzmKkhBxsGzGHnFOTGKFXQyqp+VgIgm8No29QuDdwvw== X-Received: by 2002:a9d:620a:: with SMTP id g10mr5442848otj.249.1544136666786; Thu, 06 Dec 2018 14:51:06 -0800 (PST) X-Google-Smtp-Source: AFSGD/VyiuYHp5a3HzsdUi1VDS1zradjLDd09P6ugYfGYqpREczJ1B6Gmfakzm6SPitQMwiEulNS X-Received: by 2002:a9d:620a:: with SMTP id g10mr5442826otj.249.1544136665829; Thu, 06 Dec 2018 14:51:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544136665; cv=none; d=google.com; s=arc-20160816; b=appGXvlmkU4vbWYYivbYxhqvzIG2G+kQuYO5FGS5gJhUbEM1p5g+wgv+/0mO5U7WbS zL3Wsr/1YXC3D646dngavTHBFtbPE+lRRDPcOt6Qf4xyk/Sug+t6Q2BvgtxWX6bFtF0q GjvdAsRTHpXCToG+Nz0X4cCkLXLdRkL7NdGXCbZONysBWpFkFOIsu3k7sfE/ErdJdYok IjuF4rxdF9kr6u3/fWhcJR3zsyWO5I5GMAMYo5BPRV0BZS8CpBAz6DnF4Sh3lyCjBMuA +/OpbAubP4FnLg998o/jtwrg63qW7S0tct1rcEnoNHuiynHSwtLFPSDMt7sU/e+jChsP hIEQ== 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=aLvBcURNJb0nsQZQRM2VAhbyEaOu2y8Z8EMnY/LZt+kEiZcEYop4zimc5lnub3boCF SOxLWKrP+hpfp4J6/6wKdxrh2RvX9CalzeCrvn/HYzxHlY8T6ugRJgV6IiO5S/6C9SWu SbSEnNQFZ856LU/H6KeGdfCCwCE7blUkg0TGZ6PCS42NlV81NIU7JGPRGKD0cIglWnis zutglyzoSkvvm27LLzVtTIDGMKVXFrIyPgQCQMrk2UDU7BnQDlbP75nlmL3S29UTmiJZ 3cTBNjWjwiJRybaNuzrLlP+bPJ9P/HNMnfsyV5RuvWHWY/LWH/rFYACuHjKbtdoahsi4 aQHw== 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 52si713037otv.202.2018.12.06.14.51.05 for <linux-mm@kvack.org>; Thu, 06 Dec 2018 14:51: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 403741650; Thu, 6 Dec 2018 14:51:05 -0800 (PST) Received: from capper-debian.arm.com (unknown [10.37.12.92]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id B2EA83F5AF; Thu, 6 Dec 2018 14:51: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, suzuki.poulose@arm.com, jcm@redhat.com, Steve Capper <steve.capper@arm.com> Subject: [PATCH V5 3/7] arm64: mm: Define arch_get_mmap_end, arch_get_mmap_base Date: Thu, 6 Dec 2018 22:50:38 +0000 Message-Id: <20181206225042.11548-4-steve.capper@arm.com> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181206225042.11548-1-steve.capper@arm.com> References: <20181206225042.11548-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)