/* Read the CMOS clock through the BIOS, and return the seconds in BCD.  */
static u8 gettime(void)
/* Read the CMOS clock through the BIOS, and return the seconds in BCD.  */
static u8 gettime(void)
{
	struct biosregs ireg, oreg;
	initregs(&ireg);
	ireg.ah = 0x02;
	intcall(0x1a, &ireg, &oreg);
	return oreg.dh;
}