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:
Toomas Soome 2017-03-28 21:47:12 +00:00
parent 21f6d18b26
commit b1740d31c8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=316111
2 changed files with 9 additions and 7 deletions

View File

@ -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)

View File

@ -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.
*