svn commit: r316111 - head/sys/boot/i386/libi386
Toomas Soome
tsoome at FreeBSD.org
Tue Mar 28 21:47:13 UTC 2017
Author: tsoome
Date: Tue Mar 28 21:47:12 2017
New Revision: 316111
URL: https://svnweb.freebsd.org/changeset/base/316111
Log:
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
Modified:
head/sys/boot/i386/libi386/pxe.c
head/sys/boot/i386/libi386/time.c
Modified: head/sys/boot/i386/libi386/pxe.c
==============================================================================
--- head/sys/boot/i386/libi386/pxe.c Tue Mar 28 21:39:24 2017 (r316110)
+++ head/sys/boot/i386/libi386/pxe.c Tue Mar 28 21:47:12 2017 (r316111)
@@ -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)
Modified: head/sys/boot/i386/libi386/time.c
==============================================================================
--- head/sys/boot/i386/libi386/time.c Tue Mar 28 21:39:24 2017 (r316110)
+++ head/sys/boot/i386/libi386/time.c Tue Mar 28 21:47:12 2017 (r316111)
@@ -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.
*
More information about the svn-src-head
mailing list