From owner-svn-src-head@freebsd.org Tue Mar 28 21:47:13 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C7ECAD23DD8; Tue, 28 Mar 2017 21:47:13 +0000 (UTC) (envelope-from tsoome@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 94EA8C2C; Tue, 28 Mar 2017 21:47:13 +0000 (UTC) (envelope-from tsoome@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v2SLlCAQ003883; Tue, 28 Mar 2017 21:47:12 GMT (envelope-from tsoome@FreeBSD.org) Received: (from tsoome@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v2SLlClt003881; Tue, 28 Mar 2017 21:47:12 GMT (envelope-from tsoome@FreeBSD.org) Message-Id: <201703282147.v2SLlClt003881@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tsoome set sender to tsoome@FreeBSD.org using -f From: Toomas Soome Date: Tue, 28 Mar 2017 21:47:12 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r316111 - head/sys/boot/i386/libi386 X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Mar 2017 21:47:13 -0000 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. *