svn commit: r249174 - head/sys/amd64/vmm/io

Peter Grehan grehan at FreeBSD.org
Fri Apr 5 22:16:32 UTC 2013


Author: grehan
Date: Fri Apr  5 22:16:31 2013
New Revision: 249174
URL: http://svnweb.freebsd.org/changeset/base/249174

Log:
  Don't panic when a valid divisor of 1 has been requested.
  
  Obtained from:	NetApp

Modified:
  head/sys/amd64/vmm/io/vlapic.c

Modified: head/sys/amd64/vmm/io/vlapic.c
==============================================================================
--- head/sys/amd64/vmm/io/vlapic.c	Fri Apr  5 22:14:07 2013	(r249173)
+++ head/sys/amd64/vmm/io/vlapic.c	Fri Apr  5 22:16:31 2013	(r249174)
@@ -128,6 +128,8 @@ static int
 vlapic_timer_divisor(uint32_t dcr)
 {
 	switch (dcr & 0xB) {
+	case APIC_TDCR_1:
+		return (1);
 	case APIC_TDCR_2:
 		return (2);
 	case APIC_TDCR_4:


More information about the svn-src-all mailing list