Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Mar 2017 15:44:25 +0000 (UTC)
From:      Dexuan Cui <dexuan@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r314962 - head/sys/boot/efi/loader
Message-ID:  <201703091544.v29FiP4J020168@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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(),



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703091544.v29FiP4J020168>