Date: Thu, 24 Sep 2009 20:23:24 +0000 (UTC) From: Jung-uk Kim <jkim@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r197469 - head/sys/dev/dpms Message-ID: <200909242023.n8OKNO9T006718@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jkim Date: Thu Sep 24 20:23:24 2009 New Revision: 197469 URL: http://svn.freebsd.org/changeset/base/197469 Log: Initialize registers to zero before calling the interrupt handlers inside emulator as we did in r197424 for vesa. Submitted by: paradox (ddkprog yahoo com) Modified: head/sys/dev/dpms/dpms.c Modified: head/sys/dev/dpms/dpms.c ============================================================================== --- head/sys/dev/dpms/dpms.c Thu Sep 24 20:10:00 2009 (r197468) +++ head/sys/dev/dpms/dpms.c Thu Sep 24 20:23:24 2009 (r197469) @@ -192,6 +192,7 @@ dpms_call_bios(int subfunction, int *bh) { x86regs_t regs; + bzero(®s, sizeof(regs)); regs.R_AX = VBE_DPMS_FUNCTION; regs.R_BL = subfunction; regs.R_BH = *bh;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909242023.n8OKNO9T006718>