Skip to content

Commit 6d593d8

Browse files
committed
IDT: Include missing case in comments for #CP
The #CP (vector 21) exception can also be generated due to a missing ENDBRANCH instruction if indirect branch tracking is enabled. Include this in the comments. Signed-off-by: Carlos Bilbao <carlos.bilbao@amd.com>
1 parent 9c93947 commit 6d593d8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/structures/idt.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,7 @@ pub struct InterruptDescriptorTable {
348348
/// - A RET (far) instruction encountered a return address mismatch.
349349
/// - A RSTORSSP instruction encountered an invalid shadow stack restore token.
350350
/// - A SETSSBY instruction encountered an invalid supervisor shadow stack token.
351+
/// - A missing ENDBRANCH instruction if indirect branch tracking is enabled.
351352
///
352353
/// vector nr. 21
353354
pub cp_protection_exception: Entry<HandlerFuncWithErrCode>,

0 commit comments

Comments
 (0)