git: 2e6132536f70 - stable/13 - amd64 pmap.h: make it easier to use the header for other consumers
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 20 Jan 2023 03:23:58 UTC
The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=2e6132536f703a56648def0b9007c1506dccd9cd commit 2e6132536f703a56648def0b9007c1506dccd9cd Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2023-01-04 10:31:16 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2023-01-20 03:22:17 +0000 amd64 pmap.h: make it easier to use the header for other consumers Tested by: pho (cherry picked from commit ad97b9bbfccdb36f17788033903b1dbf508fcb96) --- sys/amd64/include/pmap.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/amd64/include/pmap.h b/sys/amd64/include/pmap.h index 7b86f9e139e1..0faee81a67c5 100644 --- a/sys/amd64/include/pmap.h +++ b/sys/amd64/include/pmap.h @@ -548,6 +548,7 @@ pmap_invalidate_cpu_mask(pmap_t pmap) return (&pmap->pm_active); } +#if defined(_SYS_PCPU_H_) && defined(_MACHINE_CPUFUNC_H_) /* * It seems that AlderLake+ small cores have some microarchitectural * bug, which results in the INVLPG instruction failing to flush all @@ -565,6 +566,7 @@ pmap_invlpg(pmap_t pmap, vm_offset_t va) invlpg(va); } } +#endif /* sys/pcpu.h && machine/cpufunc.h */ #endif /* _KERNEL */