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:
parent
830784ef0f
commit
1ec5ec7351
@ -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(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user