Date: Thu, 24 Sep 2009 22:42:35 +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: r197475 - head/sys/compat/x86bios Message-ID: <200909242242.n8OMgZeE009515@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jkim Date: Thu Sep 24 22:42:35 2009 New Revision: 197475 URL: http://svn.freebsd.org/changeset/base/197475 Log: Dump real mode registers under bootverbose to help debugging BIOS emulator. Modified: head/sys/compat/x86bios/x86bios.c Modified: head/sys/compat/x86bios/x86bios.c ============================================================================== --- head/sys/compat/x86bios/x86bios.c Thu Sep 24 21:35:13 2009 (r197474) +++ head/sys/compat/x86bios/x86bios.c Thu Sep 24 22:42:35 2009 (r197475) @@ -97,6 +97,11 @@ x86bios_intr(struct x86regs *regs, int i if (intno < 0 || intno > 255) return; + if (bootverbose) + printf("Calling real mode int 0x%x " + "(ax=0x%04x bx=0x%04x cx=0x%04x dx=0x%04x)\n", + intno, regs->R_AX, regs->R_BX, regs->R_CX, regs->R_DX); + mtx_lock_spin(&x86bios_lock); memcpy(&x86bios_emu.x86, regs, sizeof(*regs)); @@ -104,6 +109,11 @@ x86bios_intr(struct x86regs *regs, int i memcpy(regs, &x86bios_emu.x86, sizeof(*regs)); mtx_unlock_spin(&x86bios_lock); + + if (bootverbose) + printf("Exiting real mode int 0x%x " + "(ax=0x%04x bx=0x%04x cx=0x%04x dx=0x%04x)\n", + intno, regs->R_AX, regs->R_BX, regs->R_CX, regs->R_DX); } void *
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909242242.n8OMgZeE009515>