[IA64] forbid ptrace changes psr.ri to 3
authorShaohua Li <shaohua.li@intel.com>
Fri, 17 Aug 2007 20:43:50 +0000 (13:43 -0700)
committerTony Luck <tony.luck@intel.com>
Fri, 17 Aug 2007 20:43:50 +0000 (13:43 -0700)
commitb09e789c438c406bd9bcaac6f1c940a75007e59f
tree2e753d921e182653acf7badb1c6ebc0761047d7f
parente8c59c0cf9c91dccfb6367c306d753500d5a0150
[IA64] forbid ptrace changes psr.ri to 3

The "ri" field in the processor status register only has defined
values of 0, 1, 2.  Do not let ptrace set this to 3.  As with
other reserved fields in registers we silently discard the value.

Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/kernel/ptrace.c