Deleted Added
full compact
time.c (43561) time.c (53207)
1/*
2 * mjs copyright
1/*
2 * mjs copyright
3 *
4 * $FreeBSD: head/sys/boot/pc98/libpc98/time.c 53207 1999-11-16 00:42:18Z nyan $
3 */
4
5#include <stand.h>
6#include <btxv86.h>
7#ifdef PC98
8#include <machine/cpufunc.h>
9#endif
10

--- 5 unchanged lines hidden (view full) ---

16 * XXX uses undocumented BCD support from libstand.
17 */
18
19time_t
20time(time_t *t)
21{
22 static time_t lasttime, now;
23 int hr, min, sec;
5 */
6
7#include <stand.h>
8#include <btxv86.h>
9#ifdef PC98
10#include <machine/cpufunc.h>
11#endif
12

--- 5 unchanged lines hidden (view full) ---

18 * XXX uses undocumented BCD support from libstand.
19 */
20
21time_t
22time(time_t *t)
23{
24 static time_t lasttime, now;
25 int hr, min, sec;
26
24#ifdef PC98
27#ifdef PC98
25 unsigned char bios_time[6];
28 unsigned char bios_time[6];
26#endif
27
28 v86.ctl = 0;
29#ifdef PC98
30 v86.addr = 0x1c; /* int 0x1c, function 0 */
31 v86.eax = 0x0000;
32 v86.es = VTOPSEG(bios_time);
33 v86.ebx = VTOPOFF(bios_time);

--- 50 unchanged lines hidden ---
29#endif
30
31 v86.ctl = 0;
32#ifdef PC98
33 v86.addr = 0x1c; /* int 0x1c, function 0 */
34 v86.eax = 0x0000;
35 v86.es = VTOPSEG(bios_time);
36 v86.ebx = VTOPOFF(bios_time);

--- 50 unchanged lines hidden ---