summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzhaolei <zhaolei>2007-11-14 05:45:51 +0000
committerzhaolei <zhaolei>2007-11-14 05:45:51 +0000
commit5c80abe13539073fe688e3427fa206287f873c9b (patch)
treef15a17bf48747910c56a878d58d86ebc8d3645a4
parentdb3a383b3ba2efb0cea830a2407cdd1a73fc03c5 (diff)
downloadsystemtap-steved-5c80abe13539073fe688e3427fa206287f873c9b.tar.gz
systemtap-steved-5c80abe13539073fe688e3427fa206287f873c9b.tar.xz
systemtap-steved-5c80abe13539073fe688e3427fa206287f873c9b.zip
2007-11-14 Zhaolei <zhaolei@cn.fujitsu.com>
From Cai Fei <caifei@cn.fujitsu.com> * regs-ia64.c (ia64_fetch_register): Fix the bug of fetching register 12 on IA64.
-rw-r--r--runtime/regs-ia64.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/regs-ia64.c b/runtime/regs-ia64.c
index 50bf17d7..2a5a1d17 100644
--- a/runtime/regs-ia64.c
+++ b/runtime/regs-ia64.c
@@ -39,6 +39,9 @@ static long ia64_fetch_register(int regno, struct pt_regs *pt_regs)
{
struct ia64_stap_get_arbsp_param pa;
+ if (regno == 12)
+ return pt_regs->r12;
+
if (regno >= 8 && regno <= 11)
return *(unsigned long *)(&pt_regs->r8 + regno - 8);
else if (regno < 32 || regno > 127)