IDT: Consider #CP and #HV on Index and IndexMut
Include the cases for #CP (cp_protection_exception) and #HV
(hv_injection_exception) in the Index and IndexMut implementations.
@@ -586,9 +586,10 @@ impl Index<usize> for InterruptDescriptorTable {
16 => &self.x87_floating_point,
19 => &self.simd_floating_point,
20 => &self.virtualization,
+ 28 => &self.hv_injection_exception,
i @ 32..=255 => &self.interrupts[i - 32],
- i @ 15 | i @ 31 | i @ 21..=28 => panic!("entry {} is reserved", i),
- i @ 8 | i @ 10..=14 | i @ 17 | i @ 29 | i @ 30 => {
+ i @ 15 | i @ 31 | i @ 21..=27 => panic!("entry {} is reserved", i),
+ i @ 8 | i @ 10..=14 | i @ 17 | i @ 21 | i @ 29 | i @ 30 => {
panic!("entry {} is an exception with error code", i)
}
i @ 18 => panic!("entry {} is an diverging exception (must not return)", i),
@@ -617,9 +618,10 @@ impl IndexMut<usize> for InterruptDescriptorTable {
16 => &mut self.x87_floating_point,
19 => &mut self.simd_floating_point,
20 => &mut self.virtualization,
+ 28 => &mut self.hv_injection_exception,
i @ 32..=255 => &mut self.interrupts[i - 32],
- i @ 15 | i @ 31 | i @ 21..=28 => panic!("entry {} is reserved", i),
- i @ 8 | i @ 10..=14 | i @ 17 | i @ 29 | i @ 30 => {
+ i @ 15 | i @ 31 | i @ 21..=27 => panic!("entry {} is reserved", i),
+ i @ 8 | i @ 10..=14 | i @ 17 | i @ 21 | i @ 29 | i @ 30 => {
panic!("entry {} is an exception with error code", i)
}
i @ 18 => panic!("entry {} is an diverging exception (must not return)", i),
