Skip to content

Commit 498fa5c

Browse files
authored
fix(idt): fix panic messages for index and #VC (#321)
Signed-off-by: Harald Hoyer <[email protected]>
1 parent 129fa95 commit 498fa5c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/structures/idt.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -555,8 +555,8 @@ impl Index<usize> for InterruptDescriptorTable {
555555
19 => &self.simd_floating_point,
556556
20 => &self.virtualization,
557557
i @ 32..=255 => &self.interrupts[i - 32],
558-
i @ 15 | i @ 31 | i @ 21..=29 => panic!("entry {} is reserved", i),
559-
i @ 8 | i @ 10..=14 | i @ 17 | i @ 30 => {
558+
i @ 15 | i @ 31 | i @ 21..=28 => panic!("entry {} is reserved", i),
559+
i @ 8 | i @ 10..=14 | i @ 17 | i @ 29 | i @ 30 => {
560560
panic!("entry {} is an exception with error code", i)
561561
}
562562
i @ 18 => panic!("entry {} is an diverging exception (must not return)", i),
@@ -586,8 +586,8 @@ impl IndexMut<usize> for InterruptDescriptorTable {
586586
19 => &mut self.simd_floating_point,
587587
20 => &mut self.virtualization,
588588
i @ 32..=255 => &mut self.interrupts[i - 32],
589-
i @ 15 | i @ 31 | i @ 21..=29 => panic!("entry {} is reserved", i),
590-
i @ 8 | i @ 10..=14 | i @ 17 | i @ 30 => {
589+
i @ 15 | i @ 31 | i @ 21..=28 => panic!("entry {} is reserved", i),
590+
i @ 8 | i @ 10..=14 | i @ 17 | i @ 29 | i @ 30 => {
591591
panic!("entry {} is an exception with error code", i)
592592
}
593593
i @ 18 => panic!("entry {} is an diverging exception (must not return)", i),

0 commit comments

Comments
 (0)