loader.efi: only include the machine/ header files on x86

The 2 files may not exist on other archs like aarch64 and hence we
can have a build failure there.

Reported by:	lwhsu
MFC after:	2 weeks
Sponsored by:	Microsoft
This commit is contained in:
Dexuan Cui 2017-03-09 15:44:25 +00:00
parent 830784ef0f
commit 1ec5ec7351
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=314962

View File

@ -30,8 +30,6 @@
__FBSDID("$FreeBSD$");
#include <sys/param.h>
#include <machine/cpufunc.h>
#include <machine/specialreg.h>
#include <stand.h>
#include <bootstrap.h>
@ -42,6 +40,8 @@ __FBSDID("$FreeBSD$");
#include "loader_efi.h"
#if defined(__i386__) || defined(__amd64__)
#include <machine/cpufunc.h>
#include <machine/specialreg.h>
/*
* The code is excerpted from sys/x86/x86/identcpu.c: identify_cpu(),