svn commit: r364926 - head/sys/sys

Warner Losh imp at FreeBSD.org
Fri Aug 28 17:55:55 UTC 2020


Author: imp
Date: Fri Aug 28 17:55:54 2020
New Revision: 364926
URL: https://svnweb.freebsd.org/changeset/base/364926

Log:
  Treat the boot loader as the same as the kernel for what's visible
  
  The boot loader will be growing some (limited) support for some kernel
  interfaces for some of the timekeeping routines to support zstd code.
  Allow the declarations for them to be visible when compiling for the
  boot loader, rather than treating it like a user-space environment
  (which stand.h already provides to a limited degree).

Modified:
  head/sys/sys/time.h

Modified: head/sys/sys/time.h
==============================================================================
--- head/sys/sys/time.h	Fri Aug 28 17:49:56 2020	(r364925)
+++ head/sys/sys/time.h	Fri Aug 28 17:55:54 2020	(r364926)
@@ -492,7 +492,7 @@ struct clockinfo {
 #define	CPUCLOCK_WHICH_TID	1
 #endif
 
-#ifdef _KERNEL
+#if defined(_KERNEL) || defined(_STANDALONE)
 
 /*
  * Kernel to clock driver interface.
@@ -600,7 +600,7 @@ int	tvtohz(struct timeval *tv);
 	(((sbt2) >= sbt_timethreshold) ?				\
 	    ((*(sbt) = getsbinuptime()), 1) : ((*(sbt) = sbinuptime()), 0))
 
-#else /* !_KERNEL */
+#else /* !_KERNEL && !_STANDALONE */
 #include <time.h>
 
 #include <sys/cdefs.h>


More information about the svn-src-head mailing list