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).
This commit is contained in:
parent
0c35b86091
commit
62693fe830
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=364926
@ -492,7 +492,7 @@ struct clockinfo {
|
|||||||
#define CPUCLOCK_WHICH_TID 1
|
#define CPUCLOCK_WHICH_TID 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _KERNEL
|
#if defined(_KERNEL) || defined(_STANDALONE)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Kernel to clock driver interface.
|
* Kernel to clock driver interface.
|
||||||
@ -600,7 +600,7 @@ int tvtohz(struct timeval *tv);
|
|||||||
(((sbt2) >= sbt_timethreshold) ? \
|
(((sbt2) >= sbt_timethreshold) ? \
|
||||||
((*(sbt) = getsbinuptime()), 1) : ((*(sbt) = sbinuptime()), 0))
|
((*(sbt) = getsbinuptime()), 1) : ((*(sbt) = sbinuptime()), 0))
|
||||||
|
|
||||||
#else /* !_KERNEL */
|
#else /* !_KERNEL && !_STANDALONE */
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user