From nobody Fri Feb 02 22:59:15 2024 X-Original-To: dev-commits-src-main@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 4TRWRm1fXcz58Ss1; Fri, 2 Feb 2024 22:59:16 +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 4TRWRl6hgnz454l; Fri, 2 Feb 2024 22:59:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706914755; 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=/ireAl2V1Et3ymMKbx0CzEJU1qAHBva+MSrsOqjC8Pk=; b=FZpfV3XMyz3aV0OEZVamjhLBGrgvfa3C7ehPJSXOR8Mo7bm/GW0ytf6D+cc/ROdbFQydDn +z1pp0tmQuKRaE6wgzOego5sZg8T4z6M4Rm1qskuQkbEOxO/2tjrxQUDwfWHiFy96wNZkw 2hl+VuxU14Xm2rHc+TzBsMsdM4N9pZ983CK615YPd12P54QbdkppjXnOQjdVRm68Qe5M91 ilVHV0qs9Z6vTeGezoNW+X9nM+T3z9ja9F36VAMXHiKvy+TMVL4L9h6geianbZQWPzPfBz rFGV6RH4D0BvFT0v8GK3e1WZWBZ4bMQ5KF7l9TEvVP9eCp7VNP4KDytNaN3rpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706914755; 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=/ireAl2V1Et3ymMKbx0CzEJU1qAHBva+MSrsOqjC8Pk=; b=EjpNueQ1cYoHcexTbtMqqTL38PuF9kzL4ZW3jXr9TQ6lhgswtMj8zvh4KtiNEvIRRvXLGV 60jHPJjPh1UXH68HktN6R6TFVR+RbWo4eZGIn5Psrq7KbYH6JD9p/5hVUcwwy0YH5X9fVJ uheCLQW1F6+1+wPjCijxgEgXJQ5Fo+TSESD5Mul88103pJxocnxlCwc6Sk9xGl3ThDdem6 s31gmBloUaXEWNzB361a4iglMVCZZOv1A67XYj7u6+z1RgrhIjBv7yrfNd7PYFCm1nC4WW Pu984uUEvmvUOY2ZWYiS4zP/cnaEP9Jee1lZIlVRH9JRC36JuiZ84My/t7YvxA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1706914755; a=rsa-sha256; cv=none; b=bU+XJXpOkgnS/BJwxWCXWrerNjCYNKRDyTi6YCujbAe+P8JY0EjtDgv/vv4yiO9oV61XUC M6xmqFe2nPHaU5CNDw4k9iTfzr+11aW4qarboTfdfhVDqiJ+95c6MP0cVhu2HDH+VZvXun zoHkOh6qkzaDovgRStUD0fHPNtpfcGN4cKSo8KQq/4zBYC1DdsF+92y37U+K3xnZ9PdP/W M+gkqXMyMkB/0N/bzgF/HFAi3XMwNw37Pw2emwIobKCIaobt6lY5rbZef5PD8BSw0pvDSO cYwWDMXwixmMIoWyxQuEnve/Xa0cQIqCTIPkz5zRM9rqVjwxj963sO+fPnAIWQ== 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 4TRWRl5lS7zpv9; Fri, 2 Feb 2024 22:59:15 +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 412MxF0C042513; Fri, 2 Feb 2024 22:59:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 412MxFLq042511; Fri, 2 Feb 2024 22:59:15 GMT (envelope-from git) Date: Fri, 2 Feb 2024 22:59:15 GMT Message-Id: <202402022259.412MxFLq042511@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: afb1a3e30c05 - main - arm: pmap_extract() returns a PA not a boolean value List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: afb1a3e30c05a0f69facff7df59547ec82e3531a Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=afb1a3e30c05a0f69facff7df59547ec82e3531a commit afb1a3e30c05a0f69facff7df59547ec82e3531a Author: John Baldwin AuthorDate: 2024-02-02 22:59:03 +0000 Commit: John Baldwin CommitDate: 2024-02-02 22:59:03 +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 --- 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); } /*