diff --git a/include/i386/Makefile b/include/i386/Makefile index e422a100bebd..6870657b6bfa 100644 --- a/include/i386/Makefile +++ b/include/i386/Makefile @@ -2,6 +2,8 @@ .PATH: ${SRCTOP}/sys/i386/include INCS= \ + asm.h \ + asmacros.h \ cpufunc.h \ profile.h INCSDIR= ${INCLUDEDIR}/i386 diff --git a/sys/amd64/include/asm.h b/sys/amd64/include/asm.h index 7b66e9446ff3..a0f886443e52 100644 --- a/sys/amd64/include/asm.h +++ b/sys/amd64/include/asm.h @@ -35,6 +35,10 @@ * $FreeBSD$ */ +#ifdef __i386__ +#include +#else /* !__i386__ */ + #ifndef _MACHINE_ASM_H_ #define _MACHINE_ASM_H_ @@ -110,3 +114,5 @@ #endif /* !STRIP_FBSDID */ #endif /* !_MACHINE_ASM_H_ */ + +#endif /* __i386__ */ diff --git a/sys/amd64/include/asmacros.h b/sys/amd64/include/asmacros.h index 973a1c761c6b..a0d2e153f09b 100644 --- a/sys/amd64/include/asmacros.h +++ b/sys/amd64/include/asmacros.h @@ -39,6 +39,10 @@ * $FreeBSD$ */ +#if defined(__i386__) +#include +#else /* !__i386__ */ + #ifndef _MACHINE_ASMACROS_H_ #define _MACHINE_ASMACROS_H_ @@ -264,3 +268,5 @@ X\vec_name: #endif /* __STDC__ */ #endif /* !_MACHINE_ASMACROS_H_ */ + +#endif /* __i386__ */