Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Aug 2020 17:55:55 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r364926 - head/sys/sys
Message-ID:  <202008281755.07SHttMO008964@repo.freebsd.org>

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



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