Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Mar 2018 20:29:48 +0000 (UTC)
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r331025 - in stable/11/sys: conf dev/efidev modules/efirt
Message-ID:  <201803152029.w2FKTmEG095395@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kevans
Date: Thu Mar 15 20:29:48 2018
New Revision: 331025
URL: https://svnweb.freebsd.org/changeset/base/331025

Log:
  MFC (partially) r326066, r326121: Add an EFI RTC Driver
  
  This is effectively a direct commit to stable/11 to avoid the arm64 bits, as
  those are unfortunately not able to MFC'd.
  
  MFC r326066:
  Add a driver for the EFI RTC. This uses the EFI Runtime Services to query
  the system time.
  
  MFC r326121:
  Zero struct efi_tm before setting the needed values. We don't use the dst
  or timezone fields so ensure these are set.

Added:
  stable/11/sys/dev/efidev/efirtc.c
     - copied, changed from r326066, head/sys/dev/efidev/efirtc.c
Modified:
  stable/11/sys/conf/files
  stable/11/sys/modules/efirt/Makefile
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/conf/files
==============================================================================
--- stable/11/sys/conf/files	Thu Mar 15 20:25:06 2018	(r331024)
+++ stable/11/sys/conf/files	Thu Mar 15 20:29:48 2018	(r331025)
@@ -1585,6 +1585,7 @@ dev/ed/if_ed_pccard.c		optional ed pccard
 dev/ed/if_ed_pci.c		optional ed pci
 dev/efidev/efidev.c		optional efirt
 dev/efidev/efirt.c		optional efirt
+dev/efidev/efirtc.c		optional efirt
 dev/eisa/eisa_if.m		standard
 dev/eisa/eisaconf.c		optional eisa
 dev/e1000/if_em.c		optional em \

Copied and modified: stable/11/sys/dev/efidev/efirtc.c (from r326066, head/sys/dev/efidev/efirtc.c)
==============================================================================
--- head/sys/dev/efidev/efirtc.c	Tue Nov 21 17:23:16 2017	(r326066, copy source)
+++ stable/11/sys/dev/efidev/efirtc.c	Thu Mar 15 20:29:48 2018	(r331025)
@@ -116,6 +116,7 @@ efirtc_settime(device_t dev, struct timespec *ts)
 
 	clock_ts_to_ct(ts, &ct);
 
+	bzero(&tm, sizeof(tm));
 	tm.tm_sec = ct.sec;
 	tm.tm_min = ct.min;
 	tm.tm_hour = ct.hour;

Modified: stable/11/sys/modules/efirt/Makefile
==============================================================================
--- stable/11/sys/modules/efirt/Makefile	Thu Mar 15 20:25:06 2018	(r331024)
+++ stable/11/sys/modules/efirt/Makefile	Thu Mar 15 20:29:48 2018	(r331025)
@@ -5,6 +5,7 @@
 
 KMOD=	efirt
 SRCS=	efirt.c efirt_machdep.c efidev.c
-SRCS+=  device_if.h bus_if.h
+SRCS+=	efirtc.c
+SRCS+=  device_if.h bus_if.h clock_if.h
 
 .include <bsd.kmod.mk>



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