Skip to content
Commit c9408265 authored by Kees Cook's avatar Kees Cook Committed by H. Peter Anvin
Browse files

x86: Use enum instead of literals for trap values



The traps are referred to by their numbers and it can be difficult to
understand them while reading the code without context. This patch adds
enumeration of the trap numbers and replaces the numbers with the correct
enum for x86.

Signed-off-by: default avatarKees Cook <keescook@chromium.org>
Link: http://lkml.kernel.org/r/20120310000710.GA32667@www.outflux.net
Signed-off-by: default avatarH. Peter Anvin <hpa@zytor.com>
parent 192cfd58
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment