Initialize registers to zero before calling the interrupt handlers inside

emulator as we did in r197424 for vesa.

Submitted by:	paradox (ddkprog yahoo com)
This commit is contained in:
Jung-uk Kim 2009-09-24 20:23:24 +00:00
parent 4d849a58c4
commit 55990ad0c3

View File

@ -192,6 +192,7 @@ dpms_call_bios(int subfunction, int *bh)
{
x86regs_t regs;
bzero(&regs, sizeof(regs));
regs.R_AX = VBE_DPMS_FUNCTION;
regs.R_BL = subfunction;
regs.R_BH = *bh;