amd64: -m32 support for machine/pmap.h

Install the i386 pmap.h under /usr/include/i386 on amd64 and include
when targeting i386.

Reviewed by:	jhb, imp
This commit is contained in:
Brooks Davis 2022-06-13 18:35:39 +01:00
parent c2c8157ebe
commit 3cd1b382c6
2 changed files with 7 additions and 0 deletions

View File

@ -6,6 +6,7 @@ INCS= \
asmacros.h \
atomic.h \
cpufunc.h \
pmap.h \
profile.h \
segments.h
INCSDIR= ${INCLUDEDIR}/i386

View File

@ -44,6 +44,10 @@
* $FreeBSD$
*/
#ifdef __i386__
#include <i386/pmap.h>
#else /* !__i386__ */
#ifndef _MACHINE_PMAP_H_
#define _MACHINE_PMAP_H_
@ -584,3 +588,5 @@ pmap_pml5e_index(vm_offset_t va)
#endif /* !LOCORE */
#endif /* !_MACHINE_PMAP_H_ */
#endif /* __i386__ */