summaryrefslogtreecommitdiffstats
path: root/include/asm-ia64
diff options
context:
space:
mode:
authorZou Nan hai <nanhai.zou@intel.com>2006-09-14 08:25:15 +0800
committerTony Luck <tony.luck@intel.com>2006-09-26 14:13:03 -0700
commitf5a3f3dc189485d607fbd42678cc23958acc0a6e (patch)
tree7896c4c57d99011129af4ebfc8e3c24ca460cd1a /include/asm-ia64
parent5c55cd63a77a85f603c98c2171a8054ca34b6a9f (diff)
downloadblackbird-op-linux-f5a3f3dc189485d607fbd42678cc23958acc0a6e.tar.gz
blackbird-op-linux-f5a3f3dc189485d607fbd42678cc23958acc0a6e.zip
[IA64] Make gp value point to Region 5 in mca handler
MCA dispatch code take physical address of GP passed from SAL, then call DATA_PA_TO_VA twice on GP before call into C code. The first time is in ia64_set_kernel_register, the second time is in VIRTUAL_MODE_ENTER. The gp is changed to a virtual address in region 7 because DATA_PA_TO_VA is implemented by dep instruction. However when notify blocks were called from MCA handler code, because notify blocks are supported by callback function pointers, gp value value was switched to region 5 again. The patch set gp register to kernel gp of region 5 at entry of MCA dispatch. Signed-off-by: Zou Nan hai <nanhai.zou@intel.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'include/asm-ia64')
-rw-r--r--include/asm-ia64/mca_asm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-ia64/mca_asm.h b/include/asm-ia64/mca_asm.h
index 27c9203d8ce3..76203f9a8718 100644
--- a/include/asm-ia64/mca_asm.h
+++ b/include/asm-ia64/mca_asm.h
@@ -197,9 +197,9 @@
movl temp2 = start_addr; \
;; \
mov cr.iip = temp2; \
+ movl gp = __gp \
;; \
DATA_PA_TO_VA(sp, temp1); \
- DATA_PA_TO_VA(gp, temp2); \
srlz.i; \
;; \
nop 1; \
OpenPOWER on IntegriCloud