summaryrefslogtreecommitdiffstats
path: root/arch/ia64/lib
diff options
context:
space:
mode:
authorZou Nan hai <nanhai.zou@intel.com>2006-07-26 07:26:51 +0800
committerTony Luck <tony.luck@intel.com>2006-08-02 16:12:08 -0700
commitacb15c85de57d81d773b6e4184b7cb143ce83eba (patch)
tree3f8363f32e3a0bad1a7bce90915651e9d95b4711 /arch/ia64/lib
parentc7c17423b9ea3c5559cfb480a00844f1df9eed06 (diff)
downloadlinux-acb15c85de57d81d773b6e4184b7cb143ce83eba.tar.gz
linux-acb15c85de57d81d773b6e4184b7cb143ce83eba.tar.bz2
linux-acb15c85de57d81d773b6e4184b7cb143ce83eba.zip
[IA64] Do not assume output registers be reservered.
We found an issue in pal.S. According to the software runtime SPEC, The caller's output registers do not need to be preserved for caller. The callee may reuse input registers for any other purpose within the procedure. in ia64_pal_call_phys_stacked, input registers are copied to output registers before call into ia64_switch_mode_phys, then used to call into PAL. This assumes output registers are preserved in ia64_switch_mode_phys, which may not be true. In this particular case, ia64_switch_mode_phys alloc a null frame , and mask off psr.i. If an interrupt comes at this small window, or an MCA comes inside the procedure, output registers maybe changed, then the pal call may got some staled input registers. This patch moves the copies from input to output after ia64_switch_mode_phys to follow the software runtime convention. It also removed some unused labels in ia64_pal_call_phys_stacked. Signed-off-by: Zou Nan hai <nanhai.zou@intel.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64/lib')
0 files changed, 0 insertions, 0 deletions