/* Note that this sets EFLAGS_CF in the input register set; this makes it easier to catch functions which do nothing but don't explicitly set CF.  */
void initregs(struct biosregs *reg)
/* Note that this sets EFLAGS_CF in the input register set; this makes it easier to catch functions which do nothing but don't explicitly set CF.  */
void initregs(struct biosregs *reg)
{
	memset(reg, 0, sizeof *reg);
	reg->eflags |= X86_EFLAGS_CF;
	reg->ds = ds();
	reg->es = ds();
	reg->fs = fs();
	reg->gs = gs();
}