From nobody Mon Apr 08 19:04:25 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VCz6K3s0Qz5HYgr; Mon, 8 Apr 2024 19:04:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VCz6K1l9Bz4gVC; Mon, 8 Apr 2024 19:04:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712603065; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=BZUHK7H3yhPPIz0U5eNH/fVV/dFxjQDgF3lb4nJhRAY=; b=EwwhEacIKrQS8VeEobMxFSTbppwYQC6lxxDqARyeWpUxuvGYLBiAYW2UVmQg8lrWNCp5sM 6HyEJCb2juDuRGfpJ1A6TvqMGRF0oYTxhHAIC8p9ucvv+2vXRDwf4akJnD3g0EdQOFZuVm LHpbkuq3d2qyijLkpXajOZRTeyMdbukyGk+7r9hU56xy5piuv/Tw3F2JJnS+Z1Fn7oLPnf yuAZFHLIYL0unkcsxDz9j+P/hhiptwHxsoUX4k/IqWm/nKU7SHk4qPouOaCOocveywPqTh eOuFjiGT0tQRTkCTGCFV1udMLSi5P1jfcvKPuiq9Nq7dMCjDCi7oyFZCWYPDXg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712603065; a=rsa-sha256; cv=none; b=tbrRlCi5QjYeelKULeojaWZCjqNcXhnkFcHzK37fHZ6Kifioo521oBaI8RwS2EWh0TcsVK 6pivGvT31DSpA68O37Q1VsjH34JXiwrD1C92Jq+bvz8dX/0peLEq+VNsKJXZ/o3S8bUayq /LNDps4cg1vvfZcS4uDeFEZ81ilLq7ulbpECmhKL5beE0DcMjKJer5cNw/7UbPoN0ji7LS RCSgjvO6m/arSStQT0fXWUL0gyHM3WOY7d8LAgwFaii6JRsoF913iYsLal38mRZ92VsyrG 43gKcjkmwl2uFzyef9x6t6UpxVwa+54yr2H+RAP6i+Tq8ekL7Lvb9egKLeloNg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712603065; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=BZUHK7H3yhPPIz0U5eNH/fVV/dFxjQDgF3lb4nJhRAY=; b=elaJVFMrizkTTJXPf2SA6dJawb44Rb90DK5eVJMAhX7wuOz3tsirxLPFX23NYbUmUMt8PP I8hF5lyiZyCoW09tBxaaOZr1+gnp1vH/Y2mr1MckdBLYevRsDXCXN5ay6VfMNHpENTZ9xV lD6Rc4lj2ETLMbD5cCmOHGFbXgjvq8LlJuogRjd0hFBfGEsdcaBfdxZqkAkUtiNDP/y952 j53CfBa8iBqULMQDLrpCNFbtXnh1qW6rPaOV9U1dmqvVq01R4MKUD4nsPZaqbppVbdp/1J suLz9Zd3VMzKVvtxQLlm0zZDOw9D9vp68Js/N3kpDHe2Np4vptQ1I499xV4lmA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VCz6K1HgFzNSl; Mon, 8 Apr 2024 19:04:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 438J4PwS094066; Mon, 8 Apr 2024 19:04:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 438J4PcX094063; Mon, 8 Apr 2024 19:04:25 GMT (envelope-from git) Date: Mon, 8 Apr 2024 19:04:25 GMT Message-Id: <202404081904.438J4PcX094063@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: e24c1997bf5c - stable/14 - arm: pmap_extract() returns a PA not a boolean value List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: e24c1997bf5cffc176906761fb04d90803ab838c Auto-Submitted: auto-generated The branch stable/14 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=e24c1997bf5cffc176906761fb04d90803ab838c commit e24c1997bf5cffc176906761fb04d90803ab838c Author: John Baldwin AuthorDate: 2024-02-02 22:59:03 +0000 Commit: John Baldwin CommitDate: 2024-04-08 17:50:26 +0000 arm: pmap_extract() returns a PA not a boolean value Assume a PA of 0 indicates an invalid virtual address. Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D43694 (cherry picked from commit afb1a3e30c05a0f69facff7df59547ec82e3531a) --- sys/arm/arm/db_interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/arm/arm/db_interface.c b/sys/arm/arm/db_interface.c index 5478d9d56f25..8aad6a42316e 100644 --- a/sys/arm/arm/db_interface.c +++ b/sys/arm/arm/db_interface.c @@ -172,7 +172,7 @@ db_validate_address(vm_offset_t addr) else pmap = p->p_vmspace->vm_map.pmap; - return (pmap_extract(pmap, addr) == FALSE); + return (pmap_extract(pmap, addr) == 0); } /*