Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Mar 2017 21:47:12 +0000 (UTC)
From:      Toomas Soome <tsoome@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r316111 - head/sys/boot/i386/libi386
Message-ID:  <201703282147.v2SLlClt003881@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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.
  *



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703282147.v2SLlClt003881>