linux/arch
Kees Cook b6d3beb65f x86: Use enum instead of literals for trap values [PARTIAL]
[Based on commit c94082656d upstream, only
taking the traps.h portion.]

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>
Signed-off-by: Robin Holt <holt@sgi.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-01-27 20:46:29 -08:00
..
alpha Redefine ATOMIC_INIT and ATOMIC64_INIT to drop the casts 2012-10-02 09:47:25 -07:00
arm ARM: missing ->mmap_sem around find_vma() in swp_emulate.c 2013-01-11 09:03:48 -08:00
avr32 avr32: select generic atomic64_t support 2012-03-12 10:32:57 -07:00
blackfin rtc: fix build warnings in defconfigs 2011-06-15 20:04:02 -07:00
cris CRIS: fix I/O macros 2013-01-11 09:03:49 -08:00
frv Merge branch 'setns' 2011-05-28 10:51:01 -07:00
h8300 Merge branch 'setns' 2011-05-28 10:51:01 -07:00
ia64 random: remove rand_initialize_irq() 2012-08-15 12:04:28 -07:00
m32r Fix node_start/end_pfn() definition for mm/page_cgroup.c 2011-06-27 14:13:09 -07:00
m68k m68k: fix sigset_t accessor functions 2012-11-26 11:34:35 -08:00
microblaze Merge branch 'setns' 2011-05-28 10:51:01 -07:00
mips kbuild: Fix gcc -x syntax 2012-11-26 11:34:37 -08:00
mn10300 mn10300: only add -mmem-funcs to KBUILD_CFLAGS if gcc supports it 2012-10-13 05:28:02 +09:00
parisc PARISC: fix user-triggerable panic on parisc 2012-12-03 12:59:13 -08:00
powerpc powerpc: fix wii_memory_fixups() compile error on 3.0.y tree 2013-01-21 11:44:59 -08:00
s390 s390/time: fix sched_clock() overflow 2013-01-21 11:44:58 -08:00
score score: fix off-by-one index into syscall table 2012-01-25 17:25:04 -08:00
sh sh: Fix FDPIC binary loader 2013-01-21 11:44:58 -08:00
sparc sparc: huge_ptep_set_* functions need to call set_huge_pte_at() 2013-01-11 09:03:47 -08:00
tile arch/tile: avoid generating .eh_frame information in modules 2012-10-28 10:02:10 -07:00
um um: Implement a custom pte_same() function 2012-06-01 15:12:55 +08:00
unicore32 unicore32: using generic-y format for one line asm-generic files 2011-06-09 16:29:52 +08:00
x86 x86: Use enum instead of literals for trap values [PARTIAL] 2013-01-27 20:46:29 -08:00
xtensa xtensa: prevent arbitrary read in ptrace 2011-08-04 21:58:39 -07:00
.gitignore
Kconfig mm, powerpc: move the RCU page-table freeing into generic code 2011-05-25 08:39:16 -07:00