git: 1a55a3a729cd - main - amd64 pmap_vm_page_alloc_check(): print more data for failed assert

Konstantin Belousov kib at FreeBSD.org
Sun Aug 1 13:42:16 UTC 2021


The branch main has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=1a55a3a729cd4424e17308d3e86b54b9a6e68f7b

commit 1a55a3a729cd4424e17308d3e86b54b9a6e68f7b
Author:     Konstantin Belousov <kib at FreeBSD.org>
AuthorDate: 2021-08-01 13:38:17 +0000
Commit:     Konstantin Belousov <kib at FreeBSD.org>
CommitDate: 2021-08-01 13:42:02 +0000

    amd64 pmap_vm_page_alloc_check(): print more data for failed assert
    
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
---
 sys/amd64/include/pmap.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sys/amd64/include/pmap.h b/sys/amd64/include/pmap.h
index 401eae0044f9..518dc544ac0d 100644
--- a/sys/amd64/include/pmap.h
+++ b/sys/amd64/include/pmap.h
@@ -458,7 +458,8 @@ extern int invpcid_works;
 
 #define	pmap_vm_page_alloc_check(m)					\
 	KASSERT(m->phys_addr < kernphys || m->phys_addr >= KERNend,	\
-	    ("allocating kernel page %p", m));
+	    ("allocating kernel page %p pa %#lx kernphys %#lx kernend %#lx", \
+	    m, m->phys_addr, kernphys, KERNend));
 
 struct thread;
 


More information about the dev-commits-src-main mailing list