git: 945220915466 - stable/13 - amd64 pmap_vm_page_alloc_check(): print more data for failed assert

Konstantin Belousov kib at FreeBSD.org
Mon Aug 23 23:22:25 UTC 2021


The branch stable/13 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=94522091546658722a943ed484089b7d96b00f90

commit 94522091546658722a943ed484089b7d96b00f90
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-23 23:21:14 +0000

    amd64 pmap_vm_page_alloc_check(): print more data for failed assert
    
    (cherry picked from commit 1a55a3a729cd4424e17308d3e86b54b9a6e68f7b)
---
 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 fed65f6aa728..3228494a2aaa 100644
--- a/sys/amd64/include/pmap.h
+++ b/sys/amd64/include/pmap.h
@@ -450,7 +450,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-branches mailing list