diff options
author | grehan <grehan@FreeBSD.org> | 2013-04-05 22:16:31 +0000 |
---|---|---|
committer | grehan <grehan@FreeBSD.org> | 2013-04-05 22:16:31 +0000 |
commit | 25f8e746abc51318d1a8cc30018144d363e13031 (patch) | |
tree | 7f80d026f64e45d852d9925142ea7487ae105306 /sys/amd64 | |
parent | 9b0ba3c866b45e5419023cbaf618e8218f41f68b (diff) | |
download | FreeBSD-src-25f8e746abc51318d1a8cc30018144d363e13031.zip FreeBSD-src-25f8e746abc51318d1a8cc30018144d363e13031.tar.gz |
Don't panic when a valid divisor of 1 has been requested.
Obtained from: NetApp
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/vmm/io/vlapic.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/amd64/vmm/io/vlapic.c b/sys/amd64/vmm/io/vlapic.c index cc2e09c..a56a36e 100644 --- a/sys/amd64/vmm/io/vlapic.c +++ b/sys/amd64/vmm/io/vlapic.c @@ -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: |