loader: move bios getsecs into time.c
Move the time related function into time.c, keep the same logic as libefi. Reviewed by: allanjude Approved by: allanjude (mentor) Differential Revision: https://reviews.freebsd.org/D10058
This commit is contained in:
parent
21f6d18b26
commit
b1740d31c8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=316111
@ -621,13 +621,6 @@ bangpxe_call(int func)
|
||||
v86.ctl = V86_FLAGS;
|
||||
}
|
||||
|
||||
time_t
|
||||
getsecs(void)
|
||||
{
|
||||
time_t n = 0;
|
||||
time(&n);
|
||||
return n;
|
||||
}
|
||||
|
||||
static int
|
||||
pxe_netif_match(struct netif *nif, void *machdep_hint)
|
||||
|
@ -32,6 +32,7 @@ __FBSDID("$FreeBSD$");
|
||||
#include "bootstrap.h"
|
||||
#include "libi386.h"
|
||||
|
||||
time_t getsecs(void);
|
||||
static int bios_seconds(void);
|
||||
|
||||
/*
|
||||
@ -91,6 +92,14 @@ time(time_t *t)
|
||||
return(now);
|
||||
}
|
||||
|
||||
time_t
|
||||
getsecs(void)
|
||||
{
|
||||
time_t n = 0;
|
||||
time(&n);
|
||||
return n;
|
||||
}
|
||||
|
||||
/*
|
||||
* Use the BIOS Wait function to pause for (period) microseconds.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user