diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2021-08-01 21:58:21 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2021-08-23 23:21:14 +0000 |
commit | 89423483e83f93993a01c3d5eb3bc3b626e74193 (patch) | |
tree | 58ce05e0489f89ee440ad984ea937b884b0f419d | |
parent | 94522091546658722a943ed484089b7d96b00f90 (diff) | |
download | src-89423483e83f93993a01c3d5eb3bc3b626e74193.tar.gz src-89423483e83f93993a01c3d5eb3bc3b626e74193.zip |
amd64 pmap_vm_page_alloc_check(): loose the assert
(cherry picked from commit 665895db262fa596b347e40f6857b37e0f43b184)
-rw-r--r-- | sys/amd64/include/pmap.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/amd64/include/pmap.h b/sys/amd64/include/pmap.h index 3228494a2aaa..6fb240e6363a 100644 --- a/sys/amd64/include/pmap.h +++ b/sys/amd64/include/pmap.h @@ -449,9 +449,10 @@ extern int invpcid_works; #define pmap_unmapbios(va, sz) pmap_unmapdev((va), (sz)) #define pmap_vm_page_alloc_check(m) \ - KASSERT(m->phys_addr < kernphys || m->phys_addr >= KERNend, \ - ("allocating kernel page %p pa %#lx kernphys %#lx kernend %#lx", \ - m, m->phys_addr, kernphys, KERNend)); + KASSERT(m->phys_addr < kernphys || \ + m->phys_addr >= kernphys + (vm_offset_t)&_end - KERNSTART, \ + ("allocating kernel page %p pa %#lx kernphys %#lx end %p", \ + m, m->phys_addr, kernphys, &_end)); struct thread; |