From nobody Mon Apr 08 20:25:48 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 4VD0wD43ZZz5Hhyc; Mon, 8 Apr 2024 20:25:48 +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 4VD0wD30NCz3xlH; Mon, 8 Apr 2024 20:25:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712607948; 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=Ge4EjZ+N1FhahyLQgDOfWTfNyx+MoJNkLL29ad+J5k0=; b=ReVmY9E+gHNjHglKms4JcOpn1KDnhVFDQey0Qb8y/b3DTdmCgpjsNl4kdayrPg8USfKL+G YiKjGPsbdFm/9DheqD7wNyLbzIHviuUTa9R1+jvbeSHn+fQ/+6uOtdTRH8OKDG8WSE5tx1 8+PtIJ0jQ9zz/x71XRh1NMn73cs5MXdBCbrU6pKNIghLqkXMZRIH5e4iBsgctRRmeWLB3w O5iC3LLNY9nvlUCzi4gUzqg7sFdwrDzlWHn/QThYsSRDwQg8M0UMgFOEmHlNZJUrsw7k+Q eMg9b/5itRoFgGGCsKTk1L8538CQRiLR6Ulg492ETV5uFhpDxyeETuMhJOicCQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712607948; a=rsa-sha256; cv=none; b=PauIETGrOvoyxwkbRdKSuMztqmzFWcIdzoAdrpi4p+FfIXr9a6A5a6dBWzuw3E2rK60ECr oeYjFUAr9Dl5EVsl5ZWHkb5QBn++fb+JB+AhQHPCG4KznMJWn7LBEFvRPXBSxFEQL//Gp6 uwPLbY5jYUhZxvEmawuHrfysgVC5pcZ4vyOv5YicF4dtLYVuG+s9KEohAy+837Rsx/jmxM jQDfzWTXip/Vw/CCAaqrtcXbmdFxkDoygxeI5JMkl9nzCrEJCwSUMNMwBbxRr/yt85MdI8 Sl3/u8WsawLBYcBc+YkE6+o27x+10Fy3CqpGkI7KbBZibYP257v2HTAFXnuHdw== 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=1712607948; 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=Ge4EjZ+N1FhahyLQgDOfWTfNyx+MoJNkLL29ad+J5k0=; b=WShnlSooB+sXZ6ubIDb6X/wkC3FD/yoAa4DwuW3a+MkYAr5MIvUAZ4XvinNMwW3ibNPGPb rHrteP0c9O0N2CXsayWRlr80rD7CT2ciw+sFQDiITsNaz69fmwE6kXIk2EcEpJfk84Kjs2 Kc/wIEOgBIL53KXpwaQsTx3BV9wSsKg9BKyEkaiVxK2uCFuYo3jjYsikuV27xfCh85CJZh mkk9nF8KRV7svxue8tmR1fpClF9dTD0bW6jwgi4T5/9484jdc5DmuPz9CZBi7v/u+Nb7qm Jh4zDPxff8zAaCtN9Rr+VarocBUDWPWYQ7ZUcIYrvlzBGKrEpVA0C9mObpUiGA== 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 4VD0wD2ckczQGS; Mon, 8 Apr 2024 20:25:48 +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 438KPmWO039778; Mon, 8 Apr 2024 20:25:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 438KPmL2039775; Mon, 8 Apr 2024 20:25:48 GMT (envelope-from git) Date: Mon, 8 Apr 2024 20:25:48 GMT Message-Id: <202404082025.438KPmL2039775@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: db522f6bd041 - stable/13 - 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/13 X-Git-Reftype: branch X-Git-Commit: db522f6bd04120a5d0b981398efa73555a098ad0 Auto-Submitted: auto-generated The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=db522f6bd04120a5d0b981398efa73555a098ad0 commit db522f6bd04120a5d0b981398efa73555a098ad0 Author: John Baldwin AuthorDate: 2024-02-02 22:59:03 +0000 Commit: John Baldwin CommitDate: 2024-04-08 17:50:38 +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 174d0a7d5cc7..8802cce1d81b 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); } /*