diff mbox series

[kvm-unit-tests,v2,04/16] x86/cet: Use symbolic name for #CP

Message ID 20230413184219.36404-5-minipli@grsecurity.net (mailing list archive)
State New, archived
Headers show
Series x86: cleanups, fixes and new tests | expand

Commit Message

Mathias Krause April 13, 2023, 6:42 p.m. UTC
Make use of the symbolic name for the #CP vector number instead of
hard-coding its value.

Signed-off-by: Mathias Krause <minipli@grsecurity.net>
---
 x86/cet.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/x86/cet.c b/x86/cet.c
index c01dd89d9082..42d2b1fc043f 100644
--- a/x86/cet.c
+++ b/x86/cet.c
@@ -83,7 +83,7 @@  int main(int ac, char **av)
 	}
 
 	setup_vm();
-	handle_exception(21, handle_cp);
+	handle_exception(CP_VECTOR, handle_cp);
 
 	/* Allocate one page for shadow-stack. */
 	shstk_virt = alloc_vpage();