mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-08-21 07:21:15 +00:00
hypervisor: fix exception vector numbers
According to Intel SDM, #DE should be 0 and #DB should be 1. Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
parent
ca4ab99f42
commit
fd9972ecc5
@ -43,8 +43,8 @@ pub const NUM_IOAPIC_PINS: usize = 24;
|
|||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
#[derive(Clone, Debug)]
|
#[derive(Clone, Debug)]
|
||||||
pub enum Exception {
|
pub enum Exception {
|
||||||
DE = 1, // Divide Error
|
DE = 0, // Divide Error
|
||||||
DB = 2, // Debug Exception
|
DB = 1, // Debug Exception
|
||||||
BP = 3, // Breakpoint
|
BP = 3, // Breakpoint
|
||||||
OF = 4, // Overflow
|
OF = 4, // Overflow
|
||||||
BR = 5, // BOUND Range Exceeded
|
BR = 5, // BOUND Range Exceeded
|
||||||
|
Loading…
Reference in New Issue
Block a user