Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Oct 2017 08:37:43 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r324191 - head/sys/amd64/include
Message-ID:  <201710020837.v928bhKP030171@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Mon Oct  2 08:37:43 2017
New Revision: 324191
URL: https://svnweb.freebsd.org/changeset/base/324191

Log:
  Hide kernel stuff from userspace.
  
  Sponsored by:	Mellanox Technologies

Modified:
  head/sys/amd64/include/efi.h

Modified: head/sys/amd64/include/efi.h
==============================================================================
--- head/sys/amd64/include/efi.h	Mon Oct  2 07:30:21 2017	(r324190)
+++ head/sys/amd64/include/efi.h	Mon Oct  2 08:37:43 2017	(r324191)
@@ -32,8 +32,6 @@
 #ifndef __AMD64_INCLUDE_EFI_H_
 #define __AMD64_INCLUDE_EFI_H_
 
-#include <isa/rtc.h>
-
 /*
  * XXX: from gcc 6.2 manual:
  * Note, the ms_abi attribute for Microsoft Windows 64-bit targets
@@ -47,8 +45,12 @@
 #define	EFIABI_ATTR	__attribute__((ms_abi))
 #endif
 
+#ifdef _KERNEL
+#include <isa/rtc.h>
+
 #define	EFI_TIME_LOCK()		mtx_lock(&atrtc_time_lock);
 #define	EFI_TIME_UNLOCK()	mtx_unlock(&atrtc_time_lock);
 #define	EFI_TIME_OWNED()	mtx_assert(&atrtc_time_lock, MA_OWNED);
+#endif
 
 #endif /* __AMD64_INCLUDE_EFI_H_ */



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