]> git.baikalelectronics.ru Git - kernel.git/commit
x86: Use enum instead of literals for trap values
authorKees Cook <keescook@chromium.org>
Sat, 10 Mar 2012 00:07:10 +0000 (16:07 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Sat, 10 Mar 2012 00:47:54 +0000 (16:47 -0800)
commit4e3fac4fa7e26a6955bac9b3c08562838d32aed9
treed6764c507274620b6a7189c6500e4663e2ed2577
parent5a0c144ceec08b972015ae634e374af46dea095d
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: Kees Cook <keescook@chromium.org>
Link: http://lkml.kernel.org/r/20120310000710.GA32667@www.outflux.net
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/include/asm/traps.h
arch/x86/kernel/irqinit.c
arch/x86/kernel/traps.c