1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-02 12:20:51 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=197469

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;