summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/pc98/cbus/clock.c12
-rw-r--r--sys/pc98/cbus/pcrtc.c12
-rw-r--r--sys/pc98/pc98/clock.c12
3 files changed, 21 insertions, 15 deletions
diff --git a/sys/pc98/cbus/clock.c b/sys/pc98/cbus/clock.c
index a72ee3f9821d..463b10948ce1 100644
--- a/sys/pc98/cbus/clock.c
+++ b/sys/pc98/cbus/clock.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)clock.c 7.2 (Berkeley) 5/12/91
- * $Id: clock.c,v 1.38 1997/12/26 20:42:37 phk Exp $
+ * $Id: clock.c,v 1.39 1997/12/29 16:15:57 kato Exp $
*/
/*
@@ -959,10 +959,12 @@ inittodr(time_t base)
int second, min, hour;
#endif
- s = splclock();
- time.tv_sec = base;
- time.tv_usec = 0;
- splx(s);
+ if (base) {
+ s = splclock();
+ time.tv_sec = base;
+ time.tv_usec = 0;
+ splx(s);
+ }
#ifdef PC98
rtc_serialcom(0x03); /* Time Read */
diff --git a/sys/pc98/cbus/pcrtc.c b/sys/pc98/cbus/pcrtc.c
index a72ee3f9821d..463b10948ce1 100644
--- a/sys/pc98/cbus/pcrtc.c
+++ b/sys/pc98/cbus/pcrtc.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)clock.c 7.2 (Berkeley) 5/12/91
- * $Id: clock.c,v 1.38 1997/12/26 20:42:37 phk Exp $
+ * $Id: clock.c,v 1.39 1997/12/29 16:15:57 kato Exp $
*/
/*
@@ -959,10 +959,12 @@ inittodr(time_t base)
int second, min, hour;
#endif
- s = splclock();
- time.tv_sec = base;
- time.tv_usec = 0;
- splx(s);
+ if (base) {
+ s = splclock();
+ time.tv_sec = base;
+ time.tv_usec = 0;
+ splx(s);
+ }
#ifdef PC98
rtc_serialcom(0x03); /* Time Read */
diff --git a/sys/pc98/pc98/clock.c b/sys/pc98/pc98/clock.c
index a72ee3f9821d..463b10948ce1 100644
--- a/sys/pc98/pc98/clock.c
+++ b/sys/pc98/pc98/clock.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)clock.c 7.2 (Berkeley) 5/12/91
- * $Id: clock.c,v 1.38 1997/12/26 20:42:37 phk Exp $
+ * $Id: clock.c,v 1.39 1997/12/29 16:15:57 kato Exp $
*/
/*
@@ -959,10 +959,12 @@ inittodr(time_t base)
int second, min, hour;
#endif
- s = splclock();
- time.tv_sec = base;
- time.tv_usec = 0;
- splx(s);
+ if (base) {
+ s = splclock();
+ time.tv_sec = base;
+ time.tv_usec = 0;
+ splx(s);
+ }
#ifdef PC98
rtc_serialcom(0x03); /* Time Read */