From fe1911ad73a5ca1257fe32d4450a7689fabedbde Mon Sep 17 00:00:00 2001 From: Toomas Soome Date: Mon, 20 Mar 2017 00:51:25 +0200 Subject: [PATCH] 7984 loader: move bios getsecs into time.c Reviewed by: Jason King Reviewed by: Juraj Lutter Approved by: Dan McDonald --- usr/src/boot/sys/boot/i386/libi386/pxe.c | 8 -------- usr/src/boot/sys/boot/i386/libi386/time.c | 10 +++++++++- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/usr/src/boot/sys/boot/i386/libi386/pxe.c b/usr/src/boot/sys/boot/i386/libi386/pxe.c index 9dca8d7dab..0d579f658d 100644 --- a/usr/src/boot/sys/boot/i386/libi386/pxe.c +++ b/usr/src/boot/sys/boot/i386/libi386/pxe.c @@ -591,14 +591,6 @@ bangpxe_call(int func) } -time_t -getsecs(void) -{ - time_t n = 0; - time(&n); - return n; -} - static int pxe_netif_match(struct netif *nif, void *machdep_hint) { diff --git a/usr/src/boot/sys/boot/i386/libi386/time.c b/usr/src/boot/sys/boot/i386/libi386/time.c index c27dcf6b5d..e6188d6543 100644 --- a/usr/src/boot/sys/boot/i386/libi386/time.c +++ b/usr/src/boot/sys/boot/i386/libi386/time.c @@ -25,13 +25,13 @@ */ #include -__FBSDID("$FreeBSD$"); #include #include #include "bootstrap.h" #include "libi386.h" +time_t getsecs(void); static int bios_seconds(void); /* @@ -91,6 +91,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. * -- 2.11.4.GIT