Author: dexuan
Date: Thu Mar  9 15:44:25 2017
New Revision: 314962
URL: https://svnweb.freebsd.org/changeset/base/314962

Log:
  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

Modified:
  head/sys/boot/efi/loader/copy.c

Modified: head/sys/boot/efi/loader/copy.c
==============================================================================
--- head/sys/boot/efi/loader/copy.c     Thu Mar  9 15:21:03 2017        
(r314961)
+++ head/sys/boot/efi/loader/copy.c     Thu Mar  9 15:44:25 2017        
(r314962)
@@ -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(),
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to