git: afb1a3e30c05 - main - arm: pmap_extract() returns a PA not a boolean value
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 02 Feb 2024 22:59:15 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=afb1a3e30c05a0f69facff7df59547ec82e3531a commit afb1a3e30c05a0f69facff7df59547ec82e3531a Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2024-02-02 22:59:03 +0000 Commit: John Baldwin <jhb@FreeBSD.org> 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); } /*